Normalize package.json.

* Specify the files to install in package.json
* Add missing properties
* Follow `npm init`'s scheme
This commit is contained in:
XhmikosR
2015-04-14 18:29:14 +03:00
committed by Richard van Velzen
parent 763bd36b60
commit efea52a4f4
3 changed files with 49 additions and 36 deletions

3
.gitignore vendored
View File

@@ -1,2 +1,3 @@
/node_modules/
/npm-debug.log
tmp/ tmp/
node_modules/

View File

@@ -1,2 +0,0 @@
test
.travis.yml

View File

@@ -1,37 +1,51 @@
{ {
"name": "uglify-js", "name": "uglify-js",
"description": "JavaScript parser, mangler/compressor and beautifier toolkit", "description": "JavaScript parser, mangler/compressor and beautifier toolkit",
"homepage": "http://lisperator.net/uglifyjs", "homepage": "http://lisperator.net/uglifyjs",
"main": "tools/node.js", "author": "Mihai Bazon <mihai.bazon@gmail.com> (http://lisperator.net/)",
"version": "2.4.20", "license": "BSD",
"engines": { "node" : ">=0.4.0" }, "version": "2.4.20",
"maintainers": [{ "engines": {
"name": "Mihai Bazon", "node": ">=0.4.0"
"email": "mihai.bazon@gmail.com", },
"web": "http://lisperator.net/" "maintainers": [
}], "Mihai Bazon <mihai.bazon@gmail.com> (http://lisperator.net/)"
"repository": { ],
"type": "git", "repository": {
"url": "https://github.com/mishoo/UglifyJS2.git" "type": "git",
}, "url": "https://github.com/mishoo/UglifyJS2.git"
"dependencies": { },
"async" : "~0.2.6", "bugs": {
"source-map" : "0.1.34", "url": "https://github.com/mishoo/UglifyJS2/issues"
"yargs": "~3.5.4", },
"uglify-to-browserify": "~1.0.0" "main": "tools/node.js",
}, "bin": {
"devDependencies": { "uglifyjs": "bin/uglifyjs"
"acorn": "~0.6.0", },
"escodegen": "~1.3.3", "files": [
"esfuzz": "~0.3.1", "bin",
"estraverse": "~1.5.1" "lib",
}, "tools",
"browserify": { "LICENSE"
"transform": [ "uglify-to-browserify" ] ],
}, "dependencies": {
"bin": { "async": "~0.2.6",
"uglifyjs" : "bin/uglifyjs" "source-map": "0.1.34",
}, "uglify-to-browserify": "~1.0.0",
"license": "BSD", "yargs": "~3.5.4"
"scripts": {"test": "node test/run-tests.js"} },
"devDependencies": {
"acorn": "~0.6.0",
"escodegen": "~1.3.3",
"esfuzz": "~0.3.1",
"estraverse": "~1.5.1"
},
"browserify": {
"transform": [
"uglify-to-browserify"
]
},
"scripts": {
"test": "node test/run-tests.js"
}
} }