-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
80 lines (80 loc) · 3.85 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
{
"name": "nodejs-boilerplate-lts-hydrogen-es2022",
"version": "1.0.0",
"description": "",
"main": "src/main.ts",
"scripts": {
"prepare": "./node_modules/.bin/husky install && $SHELL -c '[ -s \"$HOME/.nvm/nvm.sh\" ] && \\. \"$HOME/.nvm/nvm.sh\"'",
"lint": "./node_modules/.bin/eslint --config .eslintrc.json .",
"lint:fix": "./node_modules/.bin/eslint --config .eslintrc.json --fix .",
"format": "./node_modules/.bin/prettier --config .prettierrc --ignore-path .prettierignore -c .",
"format:fix": "./node_modules/.bin/prettier --config .prettierrc --ignore-path .prettierignore --write .",
"check": "./node_modules/.bin/tsc -p tsconfig.json --noEmit",
"cleanup": "rm -rf ./dist && mkdir ./dist",
"build:debug": "npm run cleanup && ESBUILD_TARGET=node$(nvm version $(cat .nvmrc) | sed \"s/v//\") ./node_modules/.bin/esbuild --tsconfig=./tsconfig.json --bundle --sourcemap --tree-shaking=false --platform=node --target=$ESBUILD_TARGET --outfile=./dist/main.js ./src/main.ts",
"start:debug": "node --enable-source-maps ./dist/main.js",
"debug": "./node_modules/.bin/nodemon --allow-overwrite --exec \"npm run build:debug && npm run start:debug\"",
"build:release": "npm run check && npm run cleanup && ESBUILD_TARGET=node$(nvm version $(cat .nvmrc) | sed \"s/v//\") ./node_modules/.bin/esbuild --tsconfig=./tsconfig.json --bundle --minify --tree-shaking=true --platform=node --target=$ESBUILD_TARGET --outfile=./dist/main.js ./src/main.ts",
"start:release": "node ./dist/main.js",
"release": "npm run build:release && npm run start:release",
"test": "./node_modules/.bin/jest -c jest.config.js",
"test:unit": "./node_modules/.bin/jest -c jest.config.js --selectProjects unit",
"test:integration": "./node_modules/.bin/jest -c jest.config.js --selectProjects integration",
"test:e2e": "./node_modules/.bin/jest -c jest.config.js --selectProjects e2e"
},
"repository": {
"type": "git",
"url": "https://github.com/rmc-coma/NodeJS-Boilerplate-lts-Hydrogen-ES2022"
},
"author": "rmc-coma",
"license": "MIT",
"bugs": {
"url": "https://github.com/rmc-coma/NodeJS-Boilerplate-lts-Hydrogen-ES2022/issues"
},
"homepage": "https://github.com/rmc-coma/NodeJS-Boilerplate-lts-Hydrogen-ES2022#readme",
"devDependencies": {
"@babel/core": "^7.20.12",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.18.6",
"@types/jest": "^29.4.0",
"@types/node": "^18.13.0",
"@typescript-eslint/eslint-plugin": "^5.51.0",
"@typescript-eslint/parser": "^5.51.0",
"babel-jest": "^29.4.2",
"babel-plugin-jest-hoist": "^29.4.2",
"esbuild": "^0.17.7",
"eslint": "^8.33.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.3",
"jest": "^29.4.2",
"lint-staged": "^13.1.1",
"nodemon": "^2.0.20",
"prettier": "^2.8.4",
"tsc-files": "^1.1.3",
"typescript": "^4.9.5"
},
"optionalDependencies": {
"esbuild-linux-64": "^0.15.18"
},
"extensionDependencies": [
"esbenp.prettier-vscode",
"editorconfig.editorconfig",
"dbaeumer.vscode-eslint"
],
"engines": {
"node": "^18.14.0"
},
"lint-staged": {
"*(*.[tj]s?(x)|*.flow|*.json|*.?(s)css|*.less|*.html|*.vue|*.handlebars|*.md|*.yml)": [
"./node_modules/.bin/prettier --config .prettierrc --ignore-path .prettierignore --write"
],
"*.[tj]s?(x)": [
"./node_modules/.bin/eslint --config .eslintrc.json --max-warnings 0 --fix"
],
"**/*.[tj]s?(x)": [
"./node_modules/.bin/tsc-files -p tsconfig.eslint.json --noEmit"
]
}
}