File tree Expand file tree Collapse file tree 4 files changed +18
-3
lines changed Expand file tree Collapse file tree 4 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 1
- web : ./node_modules/.bin/http-server ./storybook -s -p $PORT
1
+ web : node app
Original file line number Diff line number Diff line change
1
+ var server = require ( 'auth-static' ) ;
2
+
3
+ server ( {
4
+ options : {
5
+ gzip : true
6
+ } ,
7
+ node_env : process . env . NODE_ENV ,
8
+ username : process . env . AUTH_USERNAME ,
9
+ password : process . env . AUTH_PASSWORD ,
10
+ root : './storybook' ,
11
+ port : 9001
12
+ } ) ;
Original file line number Diff line number Diff line change 6
6
"scripts" : {
7
7
"build-storybook" : " build-storybook -o ./storybook" ,
8
8
"dist" : " scripts/dist.sh" ,
9
- "heroku-prebuild" : " ./scripts/heroku-prebuild.sh" ,
10
9
"heroku-postbuild" : " ./scripts/heroku-postbuild.sh" ,
11
10
"icons" : " ./node_modules/.bin/babel-node scripts/inline-icons.js" ,
12
11
"lint" : " eslint --config=./.eslintrc components" ,
64
63
"@salesforce-ux/design-system" : " 1.0.3" ,
65
64
"@salesforce-ux/icons" : " 4.0.0" ,
66
65
"async" : " ^2.0.0-rc.5" ,
66
+ "auth-static" : " ^1.0.2" ,
67
67
"babel" : " ^6.5.2" ,
68
68
"babel-cli" : " ^6.9.0" ,
69
69
"babel-core" : " ^6.9.0" ,
81
81
"eslint-plugin-jsx-a11y" : " ^1.2.0" ,
82
82
"eslint-plugin-react" : " ^5.1.1" ,
83
83
"file-loader" : " ^0.8.4" ,
84
- "http-server" : " ^0.9.0" ,
85
84
"isparta-loader" : " ^2.0.0" ,
86
85
"istanbul" : " ^1.0.0-alpha.2" ,
87
86
"json-loader" : " ^0.5.3" ,
Original file line number Diff line number Diff line change 12
12
echo " # Building for Heroku"
13
13
14
14
npm run build-storybook
15
+
16
+ echo " ## Add meta tag"
17
+
18
+ sed -i ' ' ' s|<head>|<head><meta charset="UTF-8">|' storybook/* .html
You can’t perform that action at this time.
0 commit comments