File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed
Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -126,11 +126,7 @@ function updateCommand() {
126126 var commandInput = $ ( '#command2' ) [ 0 ] ;
127127 var deplistItems = $ ( '#deplist li input' ) ;
128128 var modulePaths = '' ;
129- for ( var i = 0 ; i < deplistItems . length ; i ++ ) {
130- if ( deplistItems [ i ] . checked ) {
131- modulePaths = "Core" + ','
132- }
133- }
129+
134130 var deplistItems2 = $ ( '.deplist li input' ) ;
135131 for ( var i = 0 ; i < deplistItems2 . length ; i ++ ) {
136132 if ( deplistItems2 [ i ] . id === "Core" ) {
@@ -141,7 +137,7 @@ function updateCommand() {
141137 }
142138 }
143139 modulePaths = modulePaths . substring ( 0 , modulePaths . length - 1 ) ;
144- commandInput . value = modulePaths === '' ? modulePaths : 'npm run package - ' + getKey ( ) + " " + modulePaths ;
140+ commandInput . value = 'npm run package - ' + getKey ( ) + " " + modulePaths ;
145141}
146142
147143function getKey ( ) {
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ program
6060 }
6161 }
6262 } ) ;
63- shell . exec ( 'npm run deploy ' + modulePaths ) ;
63+ shell . exec ( 'npm run deploy-' + key + ' ' + modulePaths ) ;
6464 } ) ;
6565
6666program . parse ( process . argv ) ;
Original file line number Diff line number Diff line change 1212 "deploy-leaflet" : " webpack --config webpack.config.leaflet.js " ,
1313 "deploy-ol3" : " webpack --config webpack.config.ol3.js " ,
1414 "compress" : " webpack -p" ,
15- "package" : " node ./build/pack.js"
15+ "package" : " node ./build/pack.js" ,
16+ "test" :" karma start"
1617 },
1718 "keywords" : [
1819 " SuperMap" ,
You can’t perform that action at this time.
0 commit comments