Skip to content

Commit

Permalink
Simplify package.json for sb build/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Apr 26, 2022
1 parent 664191c commit 4d8bdc5
Show file tree
Hide file tree
Showing 18 changed files with 20 additions and 38 deletions.
1 change: 0 additions & 1 deletion examples/angular-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"e2e": "ng e2e",
"postinstall": "ngcc --source ../../node_modules",
"ng": "ng",
"sb": "node ../../lib/cli/bin/index.js",
"start": "ng serve",
"storybook": "yarn storybook-prebuild && ng run angular-cli:storybook",
"storybook-prebuild": "yarn test:generate-output",
Expand Down
3 changes: 1 addition & 2 deletions examples/cra-kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
"build": "react-scripts build",
"build-storybook": "sb build",
"eject": "react-scripts eject",
"sb": "node ../../lib/cli/bin/index.js",
"start": "react-scripts start",
"storybook": "yarn sb dev -p 9010 --no-manager-cache",
"storybook": "sb dev -p 9010 --no-manager-cache",
"test": "react-scripts test --env=jsdom"
},
"dependencies": {
Expand Down
3 changes: 1 addition & 2 deletions examples/cra-react15/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
"build": "react-scripts build",
"build-storybook": "sb build",
"eject": "react-scripts eject",
"sb": "node ../../lib/cli/bin/index.js",
"start": "react-scripts start",
"storybook": "yarn sb dev -p 9009 --no-manager-cache",
"storybook": "sb dev -p 9009 --no-manager-cache",
"test": "react-scripts test --env=jsdom"
},
"dependencies": {
Expand Down
3 changes: 1 addition & 2 deletions examples/cra-ts-essentials/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
"build": "react-scripts build",
"build-storybook": "sb build",
"eject": "react-scripts eject",
"sb": "node ../../lib/cli/bin/index.js",
"start": "react-scripts start",
"storybook": "yarn sb dev -p 9009 --no-manager-cache",
"storybook": "sb dev -p 9009 --no-manager-cache",
"test": "SKIP_PREFLIGHT_CHECK=true react-scripts test"
},
"browserslist": {
Expand Down
3 changes: 1 addition & 2 deletions examples/cra-ts-kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
"build": "react-scripts build",
"build-storybook": "sb build",
"eject": "react-scripts eject",
"sb": "node ../../lib/cli/bin/index.js",
"start": "react-scripts start",
"storybook": "yarn sb dev -p 9009 --no-manager-cache",
"storybook": "sb dev -p 9009 --no-manager-cache",
"test": "react-scripts test"
},
"browserslist": {
Expand Down
3 changes: 1 addition & 2 deletions examples/ember-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
"build": "ember build --output-path ember-output",
"build-storybook": "yarn storybook-prebuild && sb build",
"dev": "ember serve",
"sb": "node ../../lib/cli/bin/index.js",
"storybook": "yarn build && yarn sb dev -p 9009 --no-manager-cache",
"storybook-prebuild": "yarn build && shx cp -r public/* ember-output",
"storybook:dev": "yarn dev & yarn sb dev -p 9009"
"storybook:dev": "yarn dev & sb dev -p 9009"
},
"dependencies": {
"ember-named-blocks-polyfill": "^0.2.3",
Expand Down
5 changes: 2 additions & 3 deletions examples/external-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
"version": "6.5.0-beta.0",
"private": true,
"scripts": {
"build-storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true build-storybook -c ./src/.storybook",
"build-storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true sb build -c ./src/.storybook",
"debug": "cross-env NODE_OPTIONS=--inspect-brk STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true start-storybook -p 9011",
"sb": "node ../../lib/cli/bin/index.js",
"start": "SKIP_PREFLIGHT_CHECK=true react-scripts start",
"storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true start-storybook -p 9011 --no-manager-cache -c ./src/.storybook"
"storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true sb dev -p 9011 --no-manager-cache -c ./src/.storybook"
},
"dependencies": {
"@storybook/addon-essentials": "6.5.0-beta.0",
Expand Down
3 changes: 1 addition & 2 deletions examples/html-kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
"scripts": {
"build-storybook": "sb build",
"generate-addon-jest-testresults": "jest --config=tests/addon-jest.config.json --json --outputFile=stories/addon-jest.testresults.json",
"sb": "node ../../lib/cli/bin/index.js",
"storybook": "yarn sb dev -p 9006 --no-manager-cache"
"storybook": "sb dev -p 9006 --no-manager-cache"
},
"devDependencies": {
"@storybook/addon-a11y": "6.5.0-beta.0",
Expand Down
7 changes: 3 additions & 4 deletions examples/official-storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
"private": true,
"scripts": {
"build-storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true sb build -c ./",
"debug": "cross-env NODE_OPTIONS=--inspect-brk STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true yarn sb dev -p 9011 -c ./",
"debug": "cross-env NODE_OPTIONS=--inspect-brk STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true sb dev -p 9011 -c ./",
"do-storyshots-puppeteer": "../../node_modules/.bin/jest --projects=./storyshots-puppeteer",
"generate-addon-jest-testresults": "jest --config=tests/addon-jest.config.json --json --outputFile=stories/addon-jest.testresults.json",
"sb": "node ../../lib/cli/bin/index.js",
"storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true yarn sb dev -p 9011 -c ./ --no-manager-cache",
"storyshots-puppeteer": "yarn run sb build && yarn run do-storyshots-puppeteer"
"storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true sb dev -p 9011 -c ./ --no-manager-cache",
"storyshots-puppeteer": "sb build && yarn run do-storyshots-puppeteer"
},
"devDependencies": {
"@emotion/jest": "^11.8.0",
Expand Down
3 changes: 1 addition & 2 deletions examples/preact-kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
"build-storybook": "sb build",
"dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot",
"sb": "node ../../lib/cli/bin/index.js",
"storybook": "yarn sb dev -p 9009 --no-manager-cache"
"storybook": "sb dev -p 9009 --no-manager-cache"
},
"dependencies": {
"global": "^4.4.0",
Expand Down
3 changes: 1 addition & 2 deletions examples/react-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"scripts": {
"build-storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true sb build",
"debug": "cross-env NODE_OPTIONS=--inspect-brk STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true yarn sb dev -p 9011",
"sb": "node ../../lib/cli/bin/index.js",
"storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true yarn sb dev --no-manager-cache"
"storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true sb dev --no-manager-cache"
},
"dependencies": {
"formik": "^2.2.9",
Expand Down
3 changes: 1 addition & 2 deletions examples/server-kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
"main": "index.js",
"scripts": {
"build-storybook": "sb build",
"sb": "node ../../lib/cli/bin/index.js",
"server": "PORT=1337 nodemon server.js",
"start": "concurrently \"yarn server\" \"yarn storybook\"",
"storybook": "SERVER_PORT=1137 yarn sb dev -p 9006 --quiet"
"storybook": "SERVER_PORT=1137 sb dev -p 9006 --quiet"
},
"devDependencies": {
"@storybook/addon-a11y": "6.5.0-beta.0",
Expand Down
3 changes: 1 addition & 2 deletions examples/standalone-preview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"version": "6.5.0-beta.0",
"private": true,
"scripts": {
"sb": "node ../../lib/cli/bin/index.js",
"storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true yarn sb dev -p 9011 -c ../official-storybook --no-manager-cache --preview-url=http://localhost:1337/external-iframe.html",
"storybook": "cross-env STORYBOOK_DISPLAY_WARNING=true DISPLAY_WARNING=true sb dev -p 9011 -c ../official-storybook --no-manager-cache --preview-url=http://localhost:1337/external-iframe.html",
"storybook-preview": "cross-env PREVIEW_URL=external-iframe.html parcel ./storybook.html --port 1337"
},
"devDependencies": {
Expand Down
3 changes: 1 addition & 2 deletions examples/svelte-kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"private": true,
"scripts": {
"build-storybook": "sb build",
"sb": "node ../../lib/cli/bin/index.js",
"storybook": "yarn sb dev -p 9009 --no-manager-cache"
"storybook": "sb dev -p 9009 --no-manager-cache"
},
"dependencies": {
"global": "^4.4.0"
Expand Down
3 changes: 1 addition & 2 deletions examples/vue-3-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
"scripts": {
"build": "vue-cli-service build",
"build-storybook": "sb build",
"sb": "node ../../lib/cli/bin/index.js",
"serve": "vue-cli-service serve",
"storybook": "yarn sb dev -p 6006 --no-manager-cache"
"storybook": "sb dev -p 6006 --no-manager-cache"
},
"dependencies": {
"core-js": "^3.8.2",
Expand Down
3 changes: 1 addition & 2 deletions examples/vue-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
"scripts": {
"build": "vue-cli-service build",
"build-storybook": "sb build",
"sb": "node ../../lib/cli/bin/index.js",
"serve": "vue-cli-service serve",
"storybook": "yarn sb dev -p 9009 --no-manager-cache"
"storybook": "sb dev -p 9009 --no-manager-cache"
},
"dependencies": {
"core-js": "^3.8.2",
Expand Down
3 changes: 1 addition & 2 deletions examples/vue-kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
"build-storybook": "sb build",
"dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot",
"sb": "node ../../lib/cli/bin/index.js",
"storybook": "yarn sb dev -p 9009 --no-manager-cache"
"storybook": "sb dev -p 9009 --no-manager-cache"
},
"dependencies": {
"vue": "^2.6.12",
Expand Down
3 changes: 1 addition & 2 deletions examples/web-components-kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
"scripts": {
"build-storybook": "sb build",
"generate-custom-elements-manifest": "yarn custom-elements-manifest analyze --litelement --dev --exclude \"./**/*.stories.ts\" --exclude \"./storybook-static\"",
"sb": "node ../../lib/cli/bin/index.js",
"storybook": "yarn sb dev -p 9006 --no-manager-cache"
"storybook": "sb dev -p 9006 --no-manager-cache"
},
"resolutions": {
"@storybook/addon-a11y": "portal:../../addons/a11y",
Expand Down

0 comments on commit 4d8bdc5

Please sign in to comment.