-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
48 lines (48 loc) · 1.44 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
{
"name": "my-ts-lib",
"version": "1.0.0",
"description": "my-ts-lib",
"main": "lib/cjs/index.js",
"types": "lib/cjs/index.d.ts",
"scripts": {
"prebuild": "rm -fr lib; rm -fr dist; mkdir lib; mkdir dist",
"build": "npm run build:cjs; npm run build:es6; npm run build:browser; npm run build:browser:min",
"build:cjs": "tsc --module commonjs --outDir lib/cjs",
"build:es6": "tsc --module es6 --outDir lib/es6",
"build:browser": "browserify lib/cjs/index.js --debug --standalone MyExpr -o dist/my-expr-lib.js",
"build:browser:min": "browserify lib/cjs/index.js -g uglifyify --standalone MyExpr -o dist/my-expr-lib.min.js",
"test": "jest",
"coverage": "jest --coverage",
"antlr4ts": "antlr4ts -visitor Expr.g4 -o src/parser"
},
"devDependencies": {
"@types/jest": "^21.1.5",
"antlr4ts-cli": "^0.4.0-alpha.4",
"browserify": "^14.5.0",
"jest": "^21.2.1",
"ts-jest": "^21.1.4",
"typescript": "^2.5.3",
"uglifyify": "^4.0.4"
},
"jest": {
"transform": {
".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"testRegex": "src/.*(/__tests__/.*|\\.(test|spec))\\.(jsx?|tsx?)$",
"collectCoverageFrom": [
"src/**/*.{js,ts,tsx}"
],
"coverageDirectory": "coverage",
"mapCoverage": true,
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json"
]
},
"dependencies": {
"antlr4ts": "^0.4.1-alpha.0"
}
}