-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
146 lines (146 loc) · 4.11 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{
"name": "astring",
"version": "1.5.1",
"description": "JavaScript code generator from an ESTree-compliant AST.",
"main": "./dist/astring.js",
"module": "./src/astring.js",
"bin": {
"astring": "bin/astring"
},
"scripts": {
"build": "babel src/astring.js --out-file dist/astring.js --source-maps --no-comments",
"build:watch": "babel src/astring.js --out-file dist/astring.js --source-maps --no-comments --watch",
"build:minified": "cross-env BABEL_MODE=minified babel src/astring.js --out-file dist/astring.min.js --source-maps --no-comments",
"build:demo": "npm run build:minified && cp dist/astring.min.* docs/demo/",
"prepare": "npm run build",
"test": "npm run eslint && npm run prettier:check && npm run build:minified && npm run test:coverage",
"dev": "ava --watch src/tests/astring.js",
"test:coverage": "c8 --reporter=html --reporter=text --reporter=lcov --include='src/*.js' --exclude='src/tests/**/*.js' ava src/tests/astring.js",
"test:scripts": "npm run test:scripts:build && ava src/tests/_scripts.js",
"test:performance": "ava src/tests/performance.js",
"benchmark": "node --require esm ./src/tests/benchmark.js",
"eslint": "eslint src",
"prettier": "prettier --write \"{src,scripts}/**/*.js\" \"bin/astring\"",
"prettier:check": "prettier --list-different \"{src,scripts}/**/*.js\" \"bin/astring\"",
"prepush": "npm test",
"release": "standard-version",
"deploy": "git push --follow-tags origin master && npm publish"
},
"keywords": [
"ast",
"codegen",
"code generator",
"estree",
"astravel"
],
"repository": {
"type": "git",
"url": "https://github.com/davidbonnet/astring.git"
},
"author": "David Bonnet <david@bonnet.cc>",
"license": "MIT",
"devDependencies": {
"@babel/cli": "^7.12.10",
"@babel/core": "^7.12.10",
"@babel/generator": "^7.12.11",
"@babel/parser": "^7.12.11",
"@babel/preset-env": "^7.12.11",
"acorn": "^8.0.4",
"astravel": "^0.5.0",
"ava": "^3.15.0",
"babel-preset-minify": "^0.5.1",
"benchmark": "^2.1.4",
"buble": "^0.20.0",
"c8": "^7.4.0",
"cross-env": "^7.0.3",
"escodegen": "^2.0.0",
"eslint": "^7.17.0",
"eslint-config-prettier": "^7.1.0",
"eslint-plugin-import": "^2.22.1",
"esm": "^3.2.25",
"glob": "^7.1.6",
"husky": "^4.3.6",
"lodash": "^4.17.20",
"meriyah": "^3.1.6",
"normalize-newline": "^3.0.0",
"prettier": "^2.2.1",
"standard-version": "^9.1.0",
"sucrase": "^3.17.0",
"uglify-js": "^3.12.4"
},
"prettier": {
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": false,
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": true
},
"eslintConfig": {
"plugins": [
"import"
],
"extends": [
"eslint:recommended",
"plugin:import/errors",
"prettier"
],
"env": {
"es6": true
},
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"globals": {
"console": true,
"global": true,
"module": true,
"process": true,
"require": true,
"window": true,
"__dirname": true
},
"overrides": [
{
"files": [
"src/tests/fixtures/**/*.js"
],
"rules": {
"no-unused-vars": 0,
"no-undef": 0,
"no-var": 0,
"no-empty": 0,
"no-unused-labels": 0,
"no-cond-assign": 0,
"no-constant-condition": 0,
"constructor-super": 0,
"no-unreachable": 0,
"no-unsafe-negation": 0,
"getter-return": 0,
"no-irregular-whitespace": 0,
"no-redeclare": 0,
"no-dupe-keys": 0,
"no-duplicate-case": 0,
"no-useless-escape": 0,
"no-control-regex": 0,
"no-sparse-arrays": 0,
"no-debugger": 0,
"no-dupe-class-members": 0,
"no-inner-declarations": 0
}
}
]
},
"ava": {
"files": [
"src/**/tests/astring.js",
"src/**/tests/performance.js"
],
"require": [
"esm"
]
},
"esm": "auto"
}