File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 10
10
"open:src" : " babel-node tools/srcServer.js" ,
11
11
"lint" : " esw webpack.config.* src tools" ,
12
12
"lint:watch" : " npm run lint -- --watch" ,
13
- "clean-dist" : " npm run remove-dist && mkdir ./lib/jekyll-admin/public" ,
13
+ "clean-dist" : " npm run remove-dist && npm run add-dist" ,
14
+ "add-dist" : " mkdirp ./lib/jekyll-admin/public" ,
14
15
"remove-dist" : " rimraf ./lib/jekyll-admin/public" ,
15
16
"build:html" : " babel-node tools/buildHtml.js" ,
16
17
"prebuild" : " npm run clean-dist && npm run build:html && npm run lint && npm test" ,
71
72
"file-loader" : " 0.8.5" ,
72
73
"isparta" : " 4.0.0" ,
73
74
"jsdom" : " ^9.2.1" ,
75
+ "mkdirp" : " ^0.5.1" ,
74
76
"mocha" : " 2.4.5" ,
75
77
"nock" : " ^8.0.0" ,
76
78
"node-sass" : " 3.7.0" ,
Original file line number Diff line number Diff line change 3
3
set -e
4
4
5
5
echo " Running Node tests..."
6
- npm test
6
+
7
+ # We want to run `script/build` on CI to ensure things actually build, but
8
+ # we don't want to have to run `script/build` locally every time we run tests
9
+ #
10
+ # Note: `script/build` runs `npm test` as part of the build process
11
+ if [ -n " $CI " ]; then
12
+ script/build
13
+ else
14
+ npm test
15
+ fi
You can’t perform that action at this time.
0 commit comments