-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
35 lines (35 loc) · 1.22 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
{
"name": "@tssg/syntax-parser",
"version": "1.0.0",
"main": "dist/transformer",
"files": [
"dist"
],
"author": "Tauqeer Nasir <tauqeer.insta@gmail.com>",
"license": "MIT",
"scripts": {
"build": "mkdirp dist && pegjs -o src/parser/parser.js src/parser/parser-auto-gen.pegjs",
"merge": "node src/parser/merger.js",
"dev": "nodemon --exec 'yarn merge && yarn build'",
"test": "jest",
"build:prod": "mkdirp dist/parser && mkdirp dist/transformer && mkdirp dist/addons/mongoose && yarn merge && yarn build && cp src/transformer/index.js dist/transformer/index.js && cp src/parser/parser.js dist/parser/parser.js && cp src/addons/mongoose/mongoose-transformer.js dist/addons/mongoose/mongoose-transformer.js",
"prettier": "prettier --tab-width 2 --write \"src/**/*.{js,json}\" \"__tests__/**/*.{js,json}\""
},
"devDependencies": {
"husky": "^4.2.5",
"jest": "^26.0.1",
"lint-staged": "^10.2.7",
"mkdirp": "^1.0.4",
"nodemon": "^2.0.4",
"pegjs": "^0.10.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/**/*.{js,json}": "prettier --write --tab-width 2",
"__tests__/**/*.{js}": "prettier --write --tab-width 2"
}
}