File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 7
7
"description" : " Example of pre-configured SourceJS bundle for building React Component Libraries and Style Guides." ,
8
8
"scripts" : {
9
9
"build-source" : " cd ./node_modules/sourcejs && npm run build" ,
10
- "start" : " node ./node_modules/sourcejs/app.js"
10
+ "start" : " node ./node_modules/sourcejs/app.js" ,
11
+ "postinstall" : " node pre-build-production.js"
11
12
},
12
13
"dependencies" : {
13
14
"react" : " ^0.14.2" ,
14
15
"react-dom" : " ^0.14.2" ,
15
- "sourcejs" : " ^0.6.0-nightly.3 " ,
16
+ "sourcejs" : " ^0.6.0-nightly.4 " ,
16
17
"sourcejs-react-docgen" : " ^0.3.0" ,
17
- "sourcejs-react-styleguidist" : " ^0.3 .0"
18
+ "sourcejs-react-styleguidist" : " ^0.4 .0"
18
19
}
19
20
}
Original file line number Diff line number Diff line change
1
+ // Script for pre-building webpack bundle, before running in Heroku and other containers
2
+ if ( process . env . NODE_ENV === 'production' ) {
3
+ require ( 'sourcejs-react-styleguidist/core/build.js' ) ;
4
+ }
You can’t perform that action at this time.
0 commit comments