Skip to content

Commit 31c8ce4

Browse files
committed
add script for building static storybook and deploying to github page
1 parent 8969b6e commit 31c8ce4

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@
2929
"lint:src": "eslint --ext .js src/scripts/**",
3030
"lint:stories": "eslint --ext .js stories/**",
3131
"lint:test": "eslint --ext .js test/**",
32-
"build": "babel -d lib/ src/"
32+
"build": "babel -d lib/ src/",
33+
"build:assets": "cp -r node_modules/@salesforce-ux/design-system/assets public",
34+
"build:storybook": "build-storybook -o public",
35+
"deploy": "npm-run-all build:assets build:storybook deploy:ghpage",
36+
"deploy:ghpage": "gh-pages -d public"
3337
},
3438
"files": [
3539
"lib"
@@ -49,7 +53,7 @@
4953
"@kadira/storybook": "^2.35.1",
5054
"@kadira/storybook-addon-knobs": "^1.7.1",
5155
"@kadira/storyshots": "^2.1.0",
52-
"@salesforce-ux/design-system": "^2.1.4",
56+
"@salesforce-ux/design-system": "^2.2.1",
5357
"babel-cli": "^6.18.0",
5458
"babel-core": "^6.18.0",
5559
"babel-eslint": "^7.0.0",
@@ -68,6 +72,7 @@
6872
"eslint-plugin-import": "1.16.0",
6973
"eslint-plugin-jsx-a11y": "2.2.3",
7074
"eslint-plugin-react": "6.4.1",
75+
"gh-pages": "^0.12.0",
7176
"jest": "^16.0.2",
7277
"npm-run-all": "^4.0.1",
7378
"power-assert": "^1.4.1",

public/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.html
2+
*.ico
3+
assets
4+
static

0 commit comments

Comments
 (0)