1 | {
|
2 | "name": "terser",
|
3 | "description": "JavaScript parser, mangler/compressor and beautifier toolkit for ES6+",
|
4 | "homepage": "https://github.com/fabiosantoscode/terser",
|
5 | "author": "Mihai Bazon <mihai.bazon@gmail.com> (http://lisperator.net/)",
|
6 | "license": "BSD-2-Clause",
|
7 | "version": "3.14.1",
|
8 | "engines": {
|
9 | "node": ">=4.0.0"
|
10 | },
|
11 | "maintainers": [
|
12 | "Fábio Santos <fabiosantosart@gmail.com>",
|
13 | "Alex Lam <alexlamsl@gmail.com>",
|
14 | "Mihai Bazon <mihai.bazon@gmail.com> (http://lisperator.net/)"
|
15 | ],
|
16 | "repository": "https://github.com/fabiosantoscode/terser.git",
|
17 | "main": "dist/bundle.js",
|
18 | "types": "tools/terser.d.ts",
|
19 | "bin": {
|
20 | "terser": "bin/uglifyjs"
|
21 | },
|
22 | "files": [
|
23 | "bin",
|
24 | "lib",
|
25 | "dist",
|
26 | "!dist/bundle.instrumented.js",
|
27 | "tools",
|
28 | "LICENSE"
|
29 | ],
|
30 | "dependencies": {
|
31 | "commander": "~2.17.1",
|
32 | "source-map": "~0.6.1",
|
33 | "source-map-support": "~0.5.6"
|
34 | },
|
35 | "devDependencies": {
|
36 | "acorn": "^6.0.4",
|
37 | "coveralls": "^3.0.2",
|
38 | "csv": "^5.0.0",
|
39 | "es6-promise": "^4.2.5",
|
40 | "escodegen": "^1.9.1",
|
41 | "eslint": "^4.19.1",
|
42 | "eslump": "^2.0.0",
|
43 | "istanbul": "^0.4.5",
|
44 | "mocha": "^3.0.0",
|
45 | "mochallel": "^1.8.2",
|
46 | "pre-commit": "^1.2.2",
|
47 | "semver": "~5.5.0"
|
48 | },
|
49 | "scripts": {
|
50 | "test": "rm -f dist/* && npm run prepare && istanbul instrument dist/bundle.js > dist/bundle.instrumented.js && node test/run-tests.js",
|
51 | "coverage": "istanbul cover test/run-tests.js",
|
52 | "coveralls": "coveralls < coverage/lcov.info",
|
53 | "lint": "eslint lib",
|
54 | "lint-fix": "eslint --fix lib",
|
55 | "prepare": "cd dist && TERSER_NO_BUNDLE=1 ../bin/uglifyjs ../tools/domprops.js ../lib/utils.js ../lib/ast.js ../lib/parse.js ../lib/transform.js ../lib/scope.js ../lib/output.js ../lib/compress.js ../lib/sourcemap.js ../lib/mozilla-ast.js ../lib/propmangle.js ../lib/minify.js ../tools/exports.js -mc -d \"MOZ_SourceMap=require('source-map')\" --source-map \"includeSources=true,url='bundle.js.map'\" -e \"exports:(typeof module != 'undefined' ? module.exports : Terser = {})\" -b beautify=false,ascii_only --comments /license/ -o ../dist/bundle.js"
|
56 | },
|
57 | "keywords": [
|
58 | "uglify",
|
59 | "terser",
|
60 | "uglify-es",
|
61 | "uglify-js",
|
62 | "minify",
|
63 | "minifier",
|
64 | "javascript",
|
65 | "ecmascript",
|
66 | "es5",
|
67 | "es6",
|
68 | "es7",
|
69 | "es8",
|
70 | "es2015",
|
71 | "es2016",
|
72 | "es2017",
|
73 | "async",
|
74 | "await"
|
75 | ],
|
76 | "eslintConfig": {
|
77 | "rules": {
|
78 | "brace-style": [
|
79 | "error",
|
80 | "1tbs",
|
81 | {
|
82 | "allowSingleLine": true
|
83 | }
|
84 | ],
|
85 | "quotes": [
|
86 | "error",
|
87 | "double",
|
88 | "avoid-escape"
|
89 | ],
|
90 | "no-debugger": "error",
|
91 | "semi": [
|
92 | "error",
|
93 | "always"
|
94 | ],
|
95 | "no-extra-semi": "error",
|
96 | "no-irregular-whitespace": "error",
|
97 | "space-before-blocks": [
|
98 | "error",
|
99 | "always"
|
100 | ]
|
101 | }
|
102 | },
|
103 | "pre-commit": [
|
104 | "lint-fix",
|
105 | "test"
|
106 | ]
|
107 | }
|