refactor: build scripts before release
This commit is contained in:
parent
f2b6f1def0
commit
5f1fa60b38
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -1,3 +1,7 @@
|
||||||
/node_modules/
|
/node_modules/
|
||||||
/npm-debug.log
|
/npm-debug.log
|
||||||
tmp/
|
tmp/
|
||||||
|
|
||||||
|
# files generated at build time
|
||||||
|
bin/uglifyjs
|
||||||
|
index.js
|
||||||
|
|
@ -12,14 +12,12 @@
|
||||||
"Mihai Bazon <mihai.bazon@gmail.com> (http://lisperator.net/)"
|
"Mihai Bazon <mihai.bazon@gmail.com> (http://lisperator.net/)"
|
||||||
],
|
],
|
||||||
"repository": "mishoo/UglifyJS",
|
"repository": "mishoo/UglifyJS",
|
||||||
"main": "tools/node.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
"uglifyjs": "bin/uglifyjs"
|
"uglifyjs": "bin/uglifyjs"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"bin",
|
"index.js",
|
||||||
"lib",
|
|
||||||
"tools",
|
|
||||||
"LICENSE"
|
"LICENSE"
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
@ -27,7 +25,8 @@
|
||||||
"semver": "~6.3.0"
|
"semver": "~6.3.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "node test/compress.js && node test/mocha.js"
|
"test": "node test/compress.js && node test/mocha.js",
|
||||||
|
"prepack": "bin/uglifyjs.js --self --mangle --compress --output index.js && bin/uglifyjs.js bin/uglifyjs.js --mangle --compress --output bin/uglifyjs"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"cli",
|
"cli",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user