Skip to content

Commit

Permalink
rename scripts to make more sense (#1087)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann authored Nov 22, 2024
1 parent 78f5ee1 commit 4ad3196
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/a11y-contrast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jobs:
- name: Build tokens
run: npm run build:tokens

- name: Run required checks
- name: Run required contrast validation tests
run: |
npm run contrast:check
npm run validate:contrast
- name: Prepare check results
id: check-results
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: npm run lint

- name: Code formatting check
run: npm run format:check
run: npm run format

- name: Run unit tests
run: npm test
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,21 @@
"build:figma": "tsx scripts/buildFigma.ts",
"build:config": "tsc -p build.tsconfig.jsonc && tsx ./scripts/copyDir.ts src/types dist/build/types",
"clean": "rm -rf dist",
"tokenJson:check": "tsx scripts/diffThemes.ts && tsx scripts/diffTokenProps.ts",
"contrast:check": "tsx scripts/color-contrast.ts",
"format": "prettier --write '**/*.{js,jsx,ts,tsx,md,mdx,css}'",
"format:check": "prettier --check '**/*.{js,jsx,ts,tsx,md,mdx,css}'",
"install:storybook": "cd docs/storybook && npm ci --legacy-peer-deps --no-audit --no-fund",
"validate:tokenJson": "tsx scripts/diffThemes.ts && tsx scripts/diffTokenProps.ts",
"validate:contrast": "tsx scripts/color-contrast.ts",
"format": "prettier --check '**/*.{js,jsx,ts,tsx,md,mdx,css}'",
"format:fix": "prettier --write '**/*.{js,jsx,ts,tsx,md,mdx,css}'",
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint '**/*.{js,ts,tsx,md,mdx}' --config .eslintrc.cjs && npm run lint:tokens",
"lint:fix": "eslint '**/*.{js,ts,tsx,md,mdx}' --fix --max-warnings=0 --config .eslintrc.cjs",
"lint:tokens": "tsx ./scripts/validateTokenJson.ts",
"test": "npm run test:unit && npm run test:integration",
"test:unit": "vitest run --coverage",
"test:integration": "vitest run -r integration",
"prebuild": "rm -rf dist",
"prepack": "npm run build",
"release": "changeset publish",
"start:storybook": "npm run build && cd docs/storybook && npm run storybook",
"test": "npm run test:unit && npm run test:integration",
"test:unit": "vitest run --coverage",
"test:integration": "vitest run -r integration"
"install:storybook": "cd docs/storybook && npm ci --legacy-peer-deps --no-audit --no-fund",
"start:storybook": "npm run build && cd docs/storybook && npm run storybook"
},
"prettier": "@github/prettier-config",
"devDependencies": {
Expand Down

0 comments on commit 4ad3196

Please sign in to comment.