-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
executable file
·33 lines (33 loc) · 1.06 KB
/
package.json
File metadata and controls
executable file
·33 lines (33 loc) · 1.06 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
{
"name": "project_name",
"private": true,
"scripts": {
"setup": "npm i && npm run setup:backend && npm run setup:frontend",
"setup:backend": "cd backend && npm install && npm run build && npm run generate-types",
"setup:frontend": "cd frontend && npm install",
"start": "npm run dev -w frontend",
"build:frontend": "cd frontend && next build",
"build:backend": "cd backend && npm run build",
"build": "npm run setup && NODE_ENV=production npm run build:frontend && NODE_ENV=production npm run build:backend",
"prepare": "node -e \"if(process.env.NODE_ENV !== 'production') { require('husky').install() }\""
},
"lint-staged": {
"frontend/**/*.{js,jsx,ts,tsx}": [
"eslint --fix --config frontend/.eslintrc.js",
"prettier --write"
],
"frontend/**/*.{json,md}": [
"prettier --write"
]
},
"workspaces": [
"backend",
"frontend"
],
"devDependencies": {
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"husky": "^8.0.0",
"lint-staged": "^13.3.0"
}
}