File tree 2 files changed +11
-8
lines changed
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,11 @@ docs: build-docs
68
68
69
69
# Rules for build and publish
70
70
71
- build :
71
+ compile :
72
+ @echo " [Compiling source]"
73
+ babel src --out-dir lib
74
+
75
+ build : compile
72
76
@echo " [Building dists]"
73
77
@./node_modules/.bin/webpack --config webpack.dist.config.js
74
78
@@ -120,5 +124,8 @@ publish-docs: deps-docs build-docs
120
124
121
125
publish-all : publish publish-docs
122
126
123
- clean :
127
+ clean-sources :
128
+ @rm -rf lib/* dist/* _book
129
+
130
+ clean : clean-sources
124
131
@rm -rf .version .branch ./coverage/*
Original file line number Diff line number Diff line change 16
16
},
17
17
"scripts" : {
18
18
"start" : " ./node_modules/.bin/webpack-dev-server --inline --host 127.0.0.1 --content-base examples/" ,
19
- "test" : " cross-env BABEL_ENV=commonjs NODE_ENV=test karma start" ,
20
- "lint" : " eslint lib/" ,
21
- "clean" : " rimraf lib es" ,
22
- "build:commonjs" : " cross-env BABEL_ENV=commonjs babel src --out-dir lib" ,
23
- "build:es" : " cross-env BABEL_ENV=es babel src --out-dir es" ,
24
- "build" : " npm run clean && npm run build:commonjs && npm run build:es"
19
+ "test" : " cross-env NODE_ENV=test karma start" ,
20
+ "lint" : " eslint lib/"
25
21
},
26
22
"authors" : [
27
23
" Ryan Florence"
You can’t perform that action at this time.
0 commit comments