generator-reshow 0.17.18 → 0.17.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generators/compile-sh/templates/compile.sh +1 -6
- package/generators/library/templates/Test.js +10 -0
- package/generators/library/templates/compile.sh +3 -0
- package/generators/library/templates/src/index.js +3 -0
- package/generators/npm/templates/Test.js +10 -0
- package/generators/npm/templates/src/index.js +5 -0
- package/generators/npm/templates/src/init.js +8 -0
- package/package.json +1 -1
- package/generators/app/templates/.gitignore +0 -8
|
@@ -41,7 +41,7 @@ killBy() {
|
|
|
41
41
|
stop() {
|
|
42
42
|
killBy ${DIR}/node_modules/.bin/babel
|
|
43
43
|
cat webpack.pid | xargs -I{} kill -9 {}
|
|
44
|
-
npm run clean
|
|
44
|
+
npm run clean:webpack
|
|
45
45
|
rm $SWJS
|
|
46
46
|
echo "Stop done"
|
|
47
47
|
}
|
|
@@ -73,7 +73,6 @@ production() {
|
|
|
73
73
|
echo "Production Mode"
|
|
74
74
|
checkBabel
|
|
75
75
|
npm run build
|
|
76
|
-
npm run clean:webpack
|
|
77
76
|
ENABLE_SW=1 CONFIG=$conf NODE_ENV=production $webpack
|
|
78
77
|
}
|
|
79
78
|
|
|
@@ -82,7 +81,6 @@ analyzer() {
|
|
|
82
81
|
echo "Analyzer Mode"
|
|
83
82
|
checkBabel
|
|
84
83
|
npm run build
|
|
85
|
-
npm run clean:webpack
|
|
86
84
|
CONFIG=$conf BUNDLE='{}' $webpack
|
|
87
85
|
}
|
|
88
86
|
|
|
@@ -91,7 +89,6 @@ develop() {
|
|
|
91
89
|
echo "Develop Mode"
|
|
92
90
|
checkBabel
|
|
93
91
|
npm run build
|
|
94
|
-
npm run clean:webpack
|
|
95
92
|
CONFIG=$conf $webpack
|
|
96
93
|
}
|
|
97
94
|
|
|
@@ -102,7 +99,6 @@ watch() {
|
|
|
102
99
|
npm run build:es:ui -- --watch &
|
|
103
100
|
npm run build:es:src -- --watch &
|
|
104
101
|
sleep 10
|
|
105
|
-
npm run clean:webpack
|
|
106
102
|
CONFIG=$conf $webpack --watch &
|
|
107
103
|
}
|
|
108
104
|
|
|
@@ -122,7 +118,6 @@ hot() {
|
|
|
122
118
|
npm run build:es:ui -- --watch &
|
|
123
119
|
npm run build:es:src -- --watch &
|
|
124
120
|
sleep 10
|
|
125
|
-
npm run clean:webpack
|
|
126
121
|
HOT_UPDATE=1 CONFIG=$conf $webpack serve &
|
|
127
122
|
}
|
|
128
123
|
|
package/package.json
CHANGED