-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
34 lines (34 loc) · 1.33 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
{
"name": "snake",
"version": "1.0.0",
"engines": {
"node": "20.11.0"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"esbuild": "^0.20.0",
"eslint": "^8.56.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-sort-keys-fix": "^1.1.2",
"html-minifier": "^4.0.0",
"stylelint": "^16.2.0",
"stylelint-config-standard": "^36.0.0",
"stylelint-order": "^6.0.4",
"typescript": "^5.3.3"
},
"scripts": {
"build": "yarn build:js --minify && yarn build:css --minify && yarn minifier:html && yarn transformToInline",
"build:dev": "yarn build:js && yarn build:css && cp src/index.html dist",
"build:js": "esbuild src/playground.ts --bundle --outfile=dist/playground.js",
"build:css": "esbuild src/style.css --bundle --outfile=dist/style.css --loader:.woff2=file",
"dev": "yarn build:dev && yarn server",
"lint:typescript": "eslint . --ext .ts --max-warnings=0",
"lint:css": "stylelint src/style.css",
"minifier:html": "html-minifier --collapse-whitespace --remove-attribute-quotes -o dist/index.html src/index.html",
"server": "python3 -m http.server 3000 --directory=dist",
"start": "yarn build && yarn server",
"transformToInline": "node transformToInline.mjs",
"typecheck": "tsc --noEmit"
}
}