Skip to content

Commit

Permalink
build: clean up old ce.json files and ensure presence before publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook committed Aug 7, 2020
1 parent 4af755e commit 499a3a0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
"build:tests": "tsc --build test/tsconfig.json && tsc --build test/tsconfig-node.json",
"build:clear-cache": "rm -rf packages/*/lib && rm -rf packages/*/tsconfig.tsbuildinfo",
"watch": "gulp watch",
"prestorybook": "wca analyze 'packages/*/src/index.ts' --format json --outFile custom-elements.json && node ./scripts/add-custom-properties.js --src='custom-elements.json'",
"prestorybook": "wca analyze 'packages/*/*.d.ts' --format json --outFile custom-elements.json && node ./scripts/add-custom-properties.js --src='custom-elements.json'",
"storybook": "yarn storybook:stories:build && run-p watch build:watch storybook:stories:watch storybook:start",
"storybook:start": "start-storybook",
"storybook:stories:build": "tsc --build .storybook/tsconfig.json",
"storybook:stories:watch": "tsc --build .storybook/tsconfig.json -w",
"prestorybook:build": "yarn prestorybook",
"storybook:build": "yarn storybook:stories:build && build-storybook",
"docs:analyze": "wca analyze 'packages/**/sp-*.d.ts' --format json --outFile documentation/custom-elements.json",
"docs:analyze": "wca analyze 'packages/*/*.d.ts' --format json --outFile documentation/custom-elements.json",
"postdocs:analyze": "node ./scripts/add-custom-properties.js --src='documentation/custom-elements.json'",
"docs:build": "run-p build docs:analyze && yarn docs:ts && yarn docs:build:staging && yarn storybook:build",
"docs:build:staging": "gulp docsBuildStaging",
Expand All @@ -54,8 +54,9 @@
"lint:ts": "eslint -f pretty 'packages/**/*.ts'",
"lint:css": "stylelint 'packages/**/*.css'",
"lint:versions": "node ./scripts/lint-versions.js",
"custom-element-json": "lerna exec --ignore @spectrum-web-components/styles -- wca analyze 'src/**/*.ts' --format json --outFile custom-elements.json",
"postcustom-element-json": "lerna exec --ignore @spectrum-web-components/styles -- node ../../scripts/add-custom-properties.js --src='custom-elements.json'",
"precustom-element-json": "rm packages/*/custom-elements.json",
"custom-element-json": "lerna exec --ignore @spectrum-web-components/styles -- wca analyze '*.d.ts' --format json --outFile custom-elements.json",
"postcustom-element-json": "lerna exec --ignore '{@spectrum-web-components/{bundle,,icons-ui,icons-workflow,iconset,shared,styles},example-project,swc-templates}' -- test -f custom-elements.json",
"prelerna-publish": "yarn get-ready && yarn custom-element-json",
"lerna-publish": "lerna publish --message 'chore: release new versions'",
"test": "yarn build && yarn test:ci",
Expand Down

0 comments on commit 499a3a0

Please sign in to comment.