-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
41 lines (41 loc) · 2 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
{
"name": "my-snake-game",
"version": "1.0.0",
"description": "snake game in js",
"main": "src/index.js",
"repository": "git@github.com:vianch/my-snake-game.git",
"author": "Victor Chavarro <info@vianch.com>",
"license": "MIT",
"scripts": {
"build": "yarn run lint && yarn run build:prod && yarn run minify:css && yarn run minify:html",
"build:prod": "esbuild ./src/assets/js/index.js --bundle --minify --target=chrome60,firefox60,safari11,edge18 --outfile=./public/assets/js/snake-bundle.min.js --allow-overwrite",
"build:dev": "esbuild ./src/assets/js/index.js --bundle --outfile=./src/assets/js/snake-bundle.min.js --watch",
"dev": "yarn run build:dev",
"init": "rm -rf ./src/assets/js/snake-bundle.min.js && rm -rf package-lock.json && rm -rf yarn.lock && rm -rf yarn-error.log && rm -rf node_modules && yarn install && yarn run build",
"lint:style": "eslint -c .eslintrc.js --fix src",
"lint:formatting": "prettier --write src",
"lint": "npm run lint:style && npm run lint:formatting",
"minify:html": "html-minifier src/index.html --collapse-whitespace --remove-comments -o public/snake.html",
"minify:css": "cleancss src/assets/css/snake.css -o public/assets/css/snake.css",
"start": "esbuild ./src/assets/js/index.js --bundle --minify --outfile=./src/assets/js/snake-bundle.min.js --allow-overwrite --servedir=src",
"start:dev": "esbuild ./src/assets/js/index.js --bundle --minify --sourcemap --outfile=./src/assets/js/snake-bundle.min.js --allow-overwrite --servedir=src --watch"
},
"devDependencies": {
"clean-css-cli": "^5.6.3",
"esbuild": "^0.19.11",
"eslint": "^7.32.0 || ^8.2.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-prettier": "^5.1.2",
"html-minifier": "^4.0.0",
"husky": "^8.0.3",
"prettier": "^3.1.1"
},
"resolutions": {
"serialize-javascript": "6.0.1"
},
"dependencies": {
"@supabase/supabase-js": "^2.39.2"
}
}