-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
50 lines (50 loc) · 1.53 KB
/
package.json
File metadata and controls
50 lines (50 loc) · 1.53 KB
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
{
"name": "@anvilco/best-practices-node",
"version": "0.0.1",
"description": "A package resulting from a repository that illustrates many best practices for a Node/JS project",
"repository": "https://github.com/anvilco/best-practices-node.git",
"author": "newhouse@useanvil.com",
"license": "MIT",
"main": "dist/index.js",
"engines": {
"node": ">=12"
},
"config": {
"babel_target": "12"
},
"scripts": {
"clean": "rimraf dist",
"build": "babel src --out-dir dist",
"clean:build": "yarn clean && yarn build",
"prepare": "yarn clean:build && husky install",
"develop": "nodemon --config ./nodemon.json -x 'yarn prepare && yarn start'",
"start": "node dist/index.js",
"test": "yarn prepare && node test/index.js",
"test:watch": "nodemon --config ./test/nodemon.json test -x 'yarn test'",
"lint": "eslint src/**/*.js test/**/*.js",
"my-script": "babel-node scripts/my-script.js"
},
"devDependencies": {
"@babel/cli": "^7.17.10",
"@babel/core": "^7.18.2",
"@babel/eslint-parser": "^7.18.2",
"@babel/node": "^7.17.10",
"@babel/preset-env": "^7.18.2",
"dotenv": "^16.0.1",
"eslint": "^8.16.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
"husky": ">=8.0.1",
"lint-staged": ">=12.4.2",
"nodemon": "^2.0.16",
"prettier": "^2.6.2",
"rimraf": "^3.0.2"
},
"lint-staged": {
"{src,test}/**/*.js": [
"prettier --write",
"eslint --quiet --cache --fix"
]
}
}