forked from textbook/starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 49
/
package.json
69 lines (69 loc) · 2.23 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
{
"name": "@textbook/starter-kit",
"version": "2.0.0",
"description": "v2 upgrade of the starter kit",
"funding": "https://ko-fi.com/textbook",
"license": "ISC",
"author": "Jonathan Sharpe <[email protected]>",
"type": "module",
"workspaces": [
"web",
"api",
"e2e"
],
"scripts": {
"build": "npm --workspace web run build",
"dev": "cross-env API_PORT=3100 concurrently \"npm:dev:*\"",
"dev:api": "cross-env PORT=$API_PORT npm --workspace api run dev",
"dev:web": "cross-env PORT=3000 npm --workspace web run dev",
"e2e": "npm --workspace e2e run e2e",
"e2e:dev": "concurrently --kill-others --success first \"npm:e2e:dev:*\"",
"e2e:dev:app": "npm run dev",
"e2e:dev:e2e": "cross-env PLAYWRIGHT_BASE_URL=http://localhost:3000 npm run e2e",
"lint": "npm run lint:eslint . && npm run lint:prettier -- --check .",
"lint:eslint": "eslint --max-warnings 0 --report-unused-disable-directives",
"lint:fix": "npm run lint:eslint -- --fix . && npm run lint:prettier -- --write .",
"lint:prettier": "prettier --ignore-unknown",
"migration": "npm --workspace api run migration",
"prepare": "husky || echo 'no husky 🐶'",
"preserve": "npm run build",
"serve": "npm start",
"ship": "npm run lint && npm run test && npm run e2e",
"prestart": "npm run migration up",
"start": "npm --workspace api start",
"test": "npm --workspaces --if-present test",
"test:cover": "npm test -- -- --coverage",
"posttest:cover": "nyc report --report-dir reports/coverage --reporter lcov"
},
"lint-staged": {
"*.{js,jsx}": "npm run lint:eslint -- --fix",
"*": "npm run lint:prettier -- --write"
},
"prettier": {
"useTabs": true
},
"devDependencies": {
"@codeyourfuture/eslint-config-standard": "^5.1.0",
"@types/eslint": "^9.6.1",
"@types/node": "^20.17.10",
"@vitest/coverage-v8": "^2.1.8",
"@vitest/eslint-plugin": "^1.1.16",
"concurrently": "^9.1.0",
"cross-env": "^7.0.3",
"eslint": "^9.17.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-n": "^17.15.0",
"globals": "^15.13.0",
"husky": "^9.1.7",
"lint-staged": "^15.2.11",
"nyc": "^17.1.0",
"prettier": "^3.4.2",
"vite": "^6.0.3",
"vitest": "^2.1.2"
},
"engines": {
"node": "^20.9 || ^22",
"npm": "^10"
}
}