Skip to content

Commit bae7334

Browse files
committed
parseColorOptionName
1 parent f0d9107 commit bae7334

File tree

17 files changed

+802
-12
lines changed

17 files changed

+802
-12
lines changed

.eslintrc.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ module.exports = {
1212
"rules": {
1313
"no-extra-boolean-cast": "off",
1414
"@typescript-eslint/explicit-module-boundary-types": "off",
15-
"@typescript-eslint/no-explicit-any": "off"
16-
},
15+
"@typescript-eslint/no-explicit-any": "off",
16+
"@typescript-eslint/no-namespace": "off"
17+
}
1718
};

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- if: steps.step1.outputs.npm_or_yarn == 'yarn'
4747
run: |
4848
yarn build
49-
# yarn test
49+
yarn test
5050
- if: steps.step1.outputs.npm_or_yarn == 'npm'
5151
run: |
5252
npm run build

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ jspm_packages
4343
/dist
4444
/.yarn_home
4545
/dsfr
46+
/dist_test
4647

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,17 @@ yarn
5454
yarn build
5555
npx tsc -w
5656
npx tsc -p src/bin -w & npx tsc -p src -w
57-
5857
# Open another Terminal
59-
6058
yarn start_cra # For testing in in a Create React App setup
6159
yarn start_next # For testing in a Next.js setup
6260
yarn start_vite # For testing in a Vite setup
61+
62+
# Debugging while unit testing
63+
64+
yarn build:test
65+
npx tsc -p src/test -w
66+
# Open a new terminal
67+
node dist_test/test/bin/main.js
6368
```
6469

6570
> When you want to import assets from the `./dsfr/` directory

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
"types": "dist/lib/index.d.ts",
1111
"scripts": {
1212
"build": "rimraf dist/ && tsc -p src/bin && tsc -p src && yarn grant_exec_perms && yarn copy_dsfr_dist_to_root",
13+
"build:test": "rimraf dist_test/ && tsc -p src/test",
14+
"pretest": "yarn build:test",
15+
"test": "node dist_test/test/bin/main.js",
1316
"start_cra": "yarn yarn_link && cd src/test/frameworks/cra && yarn start",
1417
"start_next": "yarn yarn_link && cd src/test/frameworks/next && yarn dev",
1518
"start_vite": "yarn yarn_link && cd src/test/frameworks/vite && yarn dev",

src/bin/generate_theme/index.ts

Whitespace-only changes.

0 commit comments

Comments
 (0)