-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathpackage.json
More file actions
38 lines (38 loc) · 1001 Bytes
/
package.json
File metadata and controls
38 lines (38 loc) · 1001 Bytes
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
{
"private": true,
"name": "worker",
"version": "1.0.0",
"main": "workers-site/dist/index.js",
"author": "Victoria Bernard <bernard.victoria22@gmail.com>",
"license": "MIT",
"dependencies": {
"@cloudflare/workers-types": "^2.0.0",
"toml": "^3.0.0",
"typescript": "^3.8.3"
},
"scripts": {
"build": "cd workers-site && tsc -d",
"lint": "eslint './templates/**/*.ts' --cache --fix && prettier --write ./templates/**/*.{js,ts}",
"start": "npm run build && wrangler preview --watch",
"transpile": "tsc -p ./templates/typescript/tsconfig.json"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^3.3.0",
"@typescript-eslint/parser": "^3.3.0",
"eslint": "^7.3.0",
"husky": "^4.2.5",
"lint-staged": "^10.2.11",
"prettier": "^2.0.5"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"./templates/**/*.ts": [
"eslint --cache --fix",
"prettier --write"
]
}
}