Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(scripts): prevent Storybook from overwriting the static CSS #505

Merged
merged 1 commit into from
Oct 31, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
"static-styles": "cross-env BABEL_ENV=static babel-node ./scripts/static-styles/cli.js",
"prestart": "yarn test:unit:output",
"start": "start-storybook -p 6006 -s .storybook/public",
"build": "yarn build:stylesheets && yarn build:storybook",
"build": "yarn build:storybook && yarn build:stylesheets",
"prebuild:storybook": "yarn test:unit:output",
"build:storybook": "build-storybook -c .storybook -o dist -s .storybook/public",
"build:stylesheets": "yarn static-styles --global --filePath=./dist/static/circuit-ui-v1.css",
"build:stylesheets": "mkdir -p dist/static && yarn static-styles --global --filePath=./dist/static/circuit-ui-v1.css",
"build:js": "yarn clean:js && yarn build:js:cjs && yarn build:js:es",
"build:js:cjs": "cross-env BABEL_ENV=cjs babel src --out-dir lib --ignore *.spec.js,*.story.js,*.docs.mdx",
"build:js:es": "cross-env BABEL_ENV=es babel src --out-dir lib/es --ignore *.spec.js,*.story.js,*.docs.mdx",
"clean:js": "rimraf lib",
"predeploy": "rm -rf ./dist && mkdir -p dist/static && yarn build && cp ./src/CNAME ./dist/CNAME",
"predeploy": "rm -rf ./dist && yarn build && cp ./src/CNAME ./dist/CNAME",
"deploy": "gh-pages -d dist",
"prerelease": "yarn build:js",
"release": "semantic-release",
Expand Down