Skip to content

Commit d631666

Browse files
committed
【package】更改打包命令
1 parent a931acb commit d631666

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

package.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@
1010
},
1111
"scripts": {
1212
"lint": "eslint src",
13-
"release": "npm run release-leaflet && npm run release-leaflet-es6 && npm run release-openlayers && npm run release-openlayers-es6 && npm run release-mapboxgl && npm run release-mapboxgl-es6 && npm run release-classic && npm run release-classic-es6",
14-
"release-leaflet": "cross-env moduleVersion=es5 npm run deploy-leaflet ./src/leaflet/index.js ./src/leaflet/css/index.js && uglifyjs ./dist/leaflet/iclient9-leaflet.js --ecma 5 --comments /Copyright©/i -c -m -o ./dist/leaflet/iclient9-leaflet.min.js && cleancss -o ./dist/leaflet/iclient9-leaflet.min.css ./dist/leaflet/iclient9-leaflet.css",
15-
"release-openlayers": "cross-env moduleVersion=es5 npm run deploy-openlayers ./src/openlayers/index.js ./src/openlayers/css/index.js && uglifyjs ./dist/openlayers/iclient9-openlayers.js --ecma 5 --comments /Copyright©/i -c -m -o ./dist/openlayers/iclient9-openlayers.min.js && cleancss -o ./dist/openlayers/iclient9-openlayers.min.css ./dist/openlayers/iclient9-openlayers.css",
16-
"release-mapboxgl": "cross-env moduleVersion=es5 npm run deploy-mapboxgl ./src/mapboxgl/index.js && uglifyjs ./dist/mapboxgl/iclient9-mapboxgl.js --ecma 5 --comments /Copyright©/i -c -m -o ./dist/mapboxgl/iclient9-mapboxgl.min.js",
17-
"release-classic": "cross-env moduleVersion=es5 npm run deploy-classic ./src/classic/index.js && uglifyjs ./dist/classic/iclient-classic.js --ecma 5 --comments /Copyright©/i -c -m -o ./dist/classic/iclient-classic.min.js",
13+
"release": "npm run release-leaflet && npm run release-openlayers && npm run release-mapboxgl && npm run release-classic",
14+
"release-leaflet": "npm run release-leaflet-es5 && npm run release-leaflet-es6",
15+
"release-openlayers": "npm run release-openlayers-es5 && npm run release-openlayers-es6",
16+
"release-mapboxgl": "npm run release-mapboxgl-es5 && npm run release-mapboxgl-es6",
17+
"release-classic": "npm run release-classic-es5 && npm run release-classic-es6",
18+
"release-leaflet-es5": "cross-env moduleVersion=es5 npm run deploy-leaflet ./src/leaflet/index.js ./src/leaflet/css/index.js && uglifyjs ./dist/leaflet/iclient9-leaflet.js --ecma 5 --comments /Copyright©/i -c -m -o ./dist/leaflet/iclient9-leaflet.min.js && cleancss -o ./dist/leaflet/iclient9-leaflet.min.css ./dist/leaflet/iclient9-leaflet.css",
19+
"release-openlayers-es5": "cross-env moduleVersion=es5 npm run deploy-openlayers ./src/openlayers/index.js ./src/openlayers/css/index.js && uglifyjs ./dist/openlayers/iclient9-openlayers.js --ecma 5 --comments /Copyright©/i -c -m -o ./dist/openlayers/iclient9-openlayers.min.js && cleancss -o ./dist/openlayers/iclient9-openlayers.min.css ./dist/openlayers/iclient9-openlayers.css",
20+
"release-mapboxgl-es5": "cross-env moduleVersion=es5 npm run deploy-mapboxgl ./src/mapboxgl/index.js && uglifyjs ./dist/mapboxgl/iclient9-mapboxgl.js --ecma 5 --comments /Copyright©/i -c -m -o ./dist/mapboxgl/iclient9-mapboxgl.min.js",
21+
"release-classic-es5": "cross-env moduleVersion=es5 npm run deploy-classic ./src/classic/index.js && uglifyjs ./dist/classic/iclient-classic.js --ecma 5 --comments /Copyright©/i -c -m -o ./dist/classic/iclient-classic.min.js",
1822
"release-leaflet-es6": "cross-env moduleVersion=es6 npm run deploy-leaflet ./src/leaflet/index.js ./src/leaflet/css/index.js && uglifyjs ./dist/leaflet/iclient9-leaflet-es6.js --ecma 6 --comments /Copyright©/i -c -m -o ./dist/leaflet/iclient9-leaflet-es6.min.js && cleancss -o ./dist/leaflet/iclient9-leaflet.min.css ./dist/leaflet/iclient9-leaflet.css",
1923
"release-openlayers-es6": "cross-env moduleVersion=es6 npm run deploy-openlayers ./src/openlayers/index.js ./src/openlayers/css/index.js && uglifyjs ./dist/openlayers/iclient9-openlayers-es6.js --ecma 6 --comments /Copyright©/i -c -m -o ./dist/openlayers/iclient9-openlayers-es6.min.js && cleancss -o ./dist/openlayers/iclient9-openlayers.min.css ./dist/openlayers/iclient9-openlayers.css",
2024
"release-mapboxgl-es6": "cross-env moduleVersion=es6 npm run deploy-mapboxgl ./src/mapboxgl/index.js && uglifyjs ./dist/mapboxgl/iclient9-mapboxgl-es6.js --ecma 6 --comments /Copyright©/i -c -m -o ./dist/mapboxgl/iclient9-mapboxgl-es6.min.js",

0 commit comments

Comments
 (0)