|
10 | 10 | },
|
11 | 11 | "scripts": {
|
12 | 12 | "analyze": "lit-analyzer \"{packages,tools}/*/src/**/!(*.css).ts\"",
|
| 13 | + "analyze:docs": "cem analyze --globs \"packages/**/*.ts\" --exclude \"**/*.d.ts\" --exclude \"**/stories/**\" --exclude \"**/icons/**\" --exclude \"**/elements/**\" --outdir projects/documentation --litelement", |
| 14 | + "analyze:storybook": "wireit", |
13 | 15 | "build": "wireit",
|
14 |
| - "build:clear-cache": "rimraf packages/*/tsconfig.tsbuildinfo && rimraf tools/*/tsconfig.tsbuildinfo", |
15 |
| - "build:component-inventory": "node ./tasks/build-component-inventory.js", |
| 16 | + "build:clean": "rimraf packages/*/tsconfig.tsbuildinfo tools/*/tsconfig.tsbuildinfo", |
16 | 17 | "build:confirm": "node ./tasks/confirm-build.js",
|
17 | 18 | "build:css": "wireit",
|
18 | 19 | "build:css:watch": "wireit",
|
19 |
| - "build:react": "yarn gen-react-wrapper && node ./tasks/build-react.js && yarn tsc --build tsconfig-react-wrapper.json", |
| 20 | + "build:icons": "wireit", |
| 21 | + "build:react": "node ./tasks/build-react.js && tsc --build tsconfig-react-wrapper.json", |
20 | 22 | "build:tests": "tsc --build test/tsconfig.json && tsc --build test/tsconfig-node.json",
|
21 | 23 | "build:ts": "wireit",
|
22 | 24 | "build:ts:watch": "wireit",
|
23 | 25 | "build:types": "wireit",
|
24 | 26 | "build:watch": "wireit",
|
25 |
| - "changeset-snapshot-publish": "yarn prepublishOnly && yarn changeset version --snapshot && yarn lint:versions --fix && yarn update-version && yarn changeset publish --no-git-tag --tag snapshot", |
26 |
| - "changeset-publish": "yarn prepublishOnly && yarn changeset version && yarn install && yarn lint:versions --fix && yarn update-version && yarn changeset publish --no-git-tag && yarn push-to-remote && yarn create-git-tag && yarn postpublish", |
27 |
| - "update-version": "node ./tasks/update-version.js", |
| 27 | + "changeset-publish": "yarn prepublishOnly && yarn changeset version && yarn install && yarn lint:versions --fix && yarn update-version && yarn changeset publish && yarn postpublish", |
| 28 | + "changeset-snapshot-publish": "yarn prepublishOnly && yarn changeset version --snapshot && yarn install && yarn lint:versions --fix && yarn update-version && yarn changeset publish --no-git-tag --tag snapshot", |
28 | 29 | "chromatic": "chromatic --build-script-name storybook:build # note that --project-token must be set in your env variables",
|
29 |
| - "create-git-tag": "node --no-warnings tasks/create-git-tag.js", |
30 |
| - "custom-element-json": "node tasks/custom-element-json.js", |
31 |
| - "docs:analyze": "cem analyze --globs \"packages/**/*.ts\" --exclude \"**/*.d.ts\" --exclude \"**/stories/**\" --exclude \"**/icons/**\" --exclude \"**/elements/**\" --outdir projects/documentation --litelement", |
| 30 | + "custom-element-json": "yarn custom-element-json:clean && node tasks/custom-element-json.js && yarn custom-element-json:validate", |
| 31 | + "custom-element-json:clean": "rimraf packages/*/custom-elements.json tools/*/custom-elements.json", |
| 32 | + "custom-element-json:validate": "node ./tasks/run-check-cem.js", |
32 | 33 | "docs:build": "yarn workspace documentation build",
|
33 |
| - "docs:ci": "yarn docs:analyze && run-p docs:production storybook:build && cp projects/documentation/custom-elements.json projects/documentation/dist/storybook", |
34 |
| - "docs:preview": "yarn docs:analyze && run-p docs:build storybook:build && cp projects/documentation/custom-elements.json projects/documentation/dist/storybook", |
| 34 | + "docs:ci": "yarn analyze:docs && run-p docs:production storybook:build && cp projects/documentation/custom-elements.json projects/documentation/dist/storybook", |
| 35 | + "docs:preview": "yarn analyze:docs && run-p docs:build storybook:build && cp projects/documentation/custom-elements.json projects/documentation/dist/storybook", |
35 | 36 | "docs:production": "yarn workspace documentation build:production",
|
36 | 37 | "docs:review": "alex packages/**/*.md",
|
37 | 38 | "docs:start": "yarn workspace documentation serve --watch",
|
38 |
| - "find": "test -f custom-elements.json", |
39 |
| - "format:css": "yarn lint:css --fix && pretty-quick --pattern \"{packages,tools}/**/*.css\"", |
40 |
| - "gen-react-wrapper": "node ./tasks/gen-react-wrapper.js", |
41 | 39 | "icons": "wireit",
|
42 | 40 | "icons:ui": "wireit",
|
43 | 41 | "icons:workflow": "wireit",
|
|
48 | 46 | "lint:packagejson": "pretty-quick --pattern package.json --pattern \"packages/*/package.json\" --pattern \"projects/*/package.json\" --pattern \"tools/*/package.json\" --pattern \"react/*/package.json\"",
|
49 | 47 | "lint:ts": "pretty-quick --pattern \"packages/**/*.ts\" && eslint -f pretty \"packages/**/*.ts\" && pretty-quick --pattern \"tools/**/*.ts\" && eslint -f pretty \"tools/**/*.ts\"",
|
50 | 48 | "lint:versions": "node ./scripts/lint-versions.js",
|
51 |
| - "new-package": "cd projects/templates && plop", |
52 |
| - "postcustom-element-json": "node ./tasks/run-check-cem.js", |
53 |
| - "postdocs:analyze": "node ./scripts/add-custom-properties.js --src=\"projects/documentation/custom-elements.json\"", |
| 49 | + "new-package": "yarn workspace swc-templates plop", |
54 | 50 | "postinstall": "husky || true && patch-package",
|
| 51 | + "postpack": "pinst --enable", |
55 | 52 | "postpublish": "yarn prepublish:react && yarn publish:react && yarn postpublish:react",
|
56 | 53 | "postpublish:react": "git reset --hard HEAD^ && git prune && rimraf react",
|
57 |
| - "precustom-element-json": "node tasks/remove-custom-elements-json.js", |
58 |
| - "preeleventy": "yarn docs:analyze", |
59 | 54 | "prepack": "pinst --disable",
|
60 |
| - "postpack": "pinst --enable", |
| 55 | + "prepublish:react": "yarn build:react && sed -i \"\" \"s/react/# react/g\" .gitignore && git commit -am \"chore: commit React watch\" --no-verify", |
61 | 56 | "prepublishOnly": "rimraf react && yarn build && yarn custom-element-json && yarn verify-build-artifacts && yarn build:confirm",
|
62 |
| - "prepublish:react": "yarn build:react && sed -i \"\" \"s/react/# react/g\" .gitignore && git commit -am \"Commit React Wrappers\" --no-verify", |
63 |
| - "prestorybook": "wireit", |
64 |
| - "prestorybook:build": "cem analyze --outdir storybook/", |
65 | 57 | "pretest:bench": "yarn build:tests && test -f test/benchmark/cli.js ||:",
|
66 |
| - "pretest:visual": "yarn build && yarn build", |
67 |
| - "process-icons": "wireit", |
68 |
| - "process-spectrum": "wireit", |
69 | 58 | "publish:react": "yarn changeset publish --no-git-tag --tag snapshot --no-push",
|
70 | 59 | "push-to-remote": "git add . && git commit -m \"chore: release new versions #publish\" && git push",
|
71 | 60 | "start": "yarn storybook",
|
72 | 61 | "storybook": "wireit",
|
73 | 62 | "storybook:build": "NODE_ENV=production storybook build -o projects/documentation/dist/storybook -c storybook",
|
74 |
| - "storybook:quick": "run-p build:watch storybook:run", |
75 |
| - "storybook:run": "web-dev-server --config wds-storybook.config.js", |
76 | 63 | "test": "yarn test:focus unit",
|
77 | 64 | "test:bench": "yarn build:tests && node test/benchmark/cli.js",
|
78 | 65 | "test:changed": "node ./tasks/test-changes.js",
|
|
81 | 68 | "test:errors": "yarn test | grep -A 32 ❌",
|
82 | 69 | "test:focus": "yarn build && yarn test:ci --group",
|
83 | 70 | "test:start": "web-test-runner",
|
84 |
| - "test:visual": "yarn test:visual:ci", |
| 71 | + "test:visual": "yarn build && yarn test:visual:ci", |
85 | 72 | "test:visual:ci": "yarn test:start --group",
|
86 | 73 | "test:visual:clean": "yarn test:visual:clean:baseline && yarn test:visual:clean:current",
|
87 | 74 | "test:visual:clean:baseline": "rimraf test/visual/screenshots-baseline",
|
88 | 75 | "test:visual:clean:current": "rimraf test/visual/screenshots-current",
|
89 | 76 | "test:watch": "yarn test:watch:focus unit",
|
90 | 77 | "test:watch:flags:focus": "yarn build && run-p build:watch \"test:start --watch --group {1} --config web-test-runner.config.ci-chromium-flags.js\" --",
|
91 | 78 | "test:watch:focus": "yarn build && run-p build:watch \"test:start --watch --group {1}\" --",
|
92 |
| - "update:spectrum-css": "node ./scripts/update-spectrum-css.js --latest || yarn update:spectrum-css:cleanup", |
93 |
| - "update:spectrum-css:cleanup": "yarn lint:packagejson && yarn --ignore-scripts && yarn process-spectrum", |
94 |
| - "update:spectrum-css:nonbreaking": "node ./scripts/update-spectrum-css.js || yarn update:spectrum-css:cleanup", |
| 79 | + "update-version": "node ./tasks/update-version.js", |
95 | 80 | "verify-build-artifacts": "node ./scripts/verify-build-artifacts.js",
|
96 | 81 | "vrt:preview": "yarn wds --config test/visual/wds-vrt.config.js",
|
97 | 82 | "vrt:quick-link": "yarn netlify deploy --alias=vrt --dir=projects/vrt-quick-link"
|
|
190 | 175 | "pretty-bytes": "^6.1.1",
|
191 | 176 | "pretty-quick": "^4.1.1",
|
192 | 177 | "re-template-tag": "^2.0.1",
|
193 |
| - "rimraf": "^5.0.1", |
| 178 | + "rimraf": "^6.0.1", |
194 | 179 | "rollup": "^4.12.0",
|
195 | 180 | "sinon": "^17.0.1",
|
196 | 181 | "storybook": "^8.6.12",
|
|
212 | 197 | },
|
213 | 198 | "build:css": {
|
214 | 199 | "command": "node ./tasks/build-css.js",
|
215 |
| - "dependencies": [ |
216 |
| - "process-spectrum" |
217 |
| - ], |
218 | 200 | "files": [
|
219 | 201 | "packages/**/*.css",
|
220 | 202 | "tools/**/*.css",
|
221 |
| - "tasks/build-css.js", |
222 |
| - "tasks/css-tools.js" |
| 203 | + "tasks/build-css.js" |
223 | 204 | ],
|
224 | 205 | "output": [
|
225 | 206 | "packages/**/*.css.ts",
|
|
234 | 215 | "build:ts": {
|
235 | 216 | "command": "node ./tasks/esbuild-packages.js",
|
236 | 217 | "dependencies": [
|
237 |
| - "process-icons", |
| 218 | + "build:icons", |
238 | 219 | "test:create",
|
239 | 220 | "build:css"
|
240 | 221 | ],
|
|
287 | 268 | "build:types": {
|
288 | 269 | "command": "tsc --build tsconfig-all.json --pretty",
|
289 | 270 | "dependencies": [
|
290 |
| - "process-icons", |
| 271 | + "build:icons", |
291 | 272 | "test:create",
|
292 | 273 | "build:css"
|
293 | 274 | ],
|
|
368 | 349 | ],
|
369 | 350 | "clean": "if-file-deleted"
|
370 | 351 | },
|
371 |
| - "prestorybook": { |
| 352 | + "analyze:storybook": { |
372 | 353 | "command": "cem analyze --outdir storybook/",
|
373 | 354 | "files": [
|
374 | 355 | "packages/**/*.ts",
|
|
378 | 359 | "storybook/custom-elements.json"
|
379 | 360 | ]
|
380 | 361 | },
|
381 |
| - "process-icons": { |
| 362 | + "build:icons": { |
382 | 363 | "dependencies": [
|
383 | 364 | "icons",
|
384 | 365 | "icons:ui",
|
385 | 366 | "icons:workflow"
|
386 | 367 | ]
|
387 | 368 | },
|
388 |
| - "process-spectrum": { |
389 |
| - "command": "node ./scripts/spectrum-vars.js && node ./tasks/process-spectrum.js && node ./scripts/generate-tokens.js && yarn format:css", |
390 |
| - "files": [ |
391 |
| - "tasks/process-spectrum.js", |
392 |
| - "packages/**/spectrum-config.js", |
393 |
| - "tools/**/spectrum-config.js", |
394 |
| - "node_modules/@spectrum-css/**/index-vars.css", |
395 |
| - "scripts/generate-tokens.js", |
396 |
| - "scripts/generate-tokens-wrapper.js", |
397 |
| - "node_modules/@spectrum-css/**/*.css", |
398 |
| - "scripts/spectrum-vars.js", |
399 |
| - "tools/styles/package.json", |
400 |
| - ".prettierrc.yaml", |
401 |
| - ".stylelintrc.json" |
402 |
| - ], |
403 |
| - "output": [ |
404 |
| - "packages/*/src/spectrum-*.css", |
405 |
| - "tools/*/src/spectrum-*.css", |
406 |
| - "tools/styles/*.css", |
407 |
| - "tools/styles/express/*.css", |
408 |
| - "!tools/styles/scale-*.css", |
409 |
| - "!tools/styles/theme-*.css", |
410 |
| - "!tools/styles/express/scale-*.css", |
411 |
| - "!tools/styles/express/theme-*.css" |
412 |
| - ], |
413 |
| - "clean": false |
414 |
| - }, |
415 | 369 | "storybook": {
|
416 | 370 | "command": "storybook dev -p 8080 -c storybook",
|
417 | 371 | "service": true,
|
418 | 372 | "dependencies": [
|
419 | 373 | "build:watch",
|
420 |
| - "prestorybook" |
| 374 | + "analyze:storybook" |
421 | 375 | ]
|
422 | 376 | },
|
423 | 377 | "test:create": {
|
|
0 commit comments