-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
100 lines (100 loc) · 4.47 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"name": "template",
"version": "0.1.0",
"description": "A template for a vanilla html, css, js project. Using eslint, prettier, stylelint and vite.",
"license": "MIT",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/loctran016/result.git"
},
"bugs": "https://github.com/loctran016/result/issues",
"author": {
"name": "LocTran016",
"email": "[email protected]",
"url": "https://loctran016.github.io"
},
"scripts": {
"build": "NODE_ENV=production vite build",
"build-dev": "build && vite preview",
"dev": "NODE_ENV=development vite",
"analysis": "windicss-analysis --html website/report",
"format": "concurrently \"yarn:format:*\" && echo Please apply the diff",
"format:eslint": "echo Fixing Lint Issues With Eslint... && yarn eslint --ext .js --fix --quiet && echo Fix generated successfully. || (echo Fix failed! && exit 1)",
"format:pkg": "format-package -w",
"format:prettier": "echo Fixing Lint Issues With Prettier... && yarn prettier -w . && echo Fix generated successfully. || (echo Fix failed! && exit 1)",
"format:stylelint": "echo Fixing Lint Issues With Stylelint... && stylelint src/css/**/*.css --fix && echo Fix generated successfully. || (echo Fix failed! && exit 1)",
"lint": "concurrently \"yarn:lint:*\"",
"lint:eslint": "echo Linting With Eslint... && yarn eslint --ext .js --quiet && echo Lint passed.|| (echo Lint failed && exit 1)",
"lint:prettier": "echo Linting With Prettier... && yarn prettier --check . && echo Lint passed. || (echo Lint failed && exit 1)",
"lint:stylelint": "echo Linting With Stylelint... && stylelint src/css/**/*.css && echo Lint passed. || (echo Lint failed && exit 1)",
"lintci": "concurrently \"yarn:lintci:*\" && echo Please apply the following diff using git apply && git diff",
"lintci:eslint": "echo Linting With Eslint... && yarn eslint --format github --ext .js --quiet && echo Lint passed. || (echo Lint failed, attempting fix... && yarn eslint --ext .js --fix --quiet && echo Fix generated successfully. || (echo Fix failed! && exit 1))",
"lintci:prettier": "echo Linting With Prettier... && yarn prettier --check . && echo Lint passed. || (echo Lint failed, attempting fix... && yarn prettier -w . && echo Fix generated successfully. || (echo Fix failed! && exit 1))",
"lintci:stylelint": "echo Linting With Stylelint... && stylelint src/css/**/*.css && echo Lint passed. || (echo Lint failed, attempting fix... && stylelint src/css/**/*.css --fix && echo Fix generated successfully. || (echo Fix failed! && exit 1))",
"min": "node ./squoosh",
"postinstall": "husky install && shx rm -rf .git/hooks && shx ln -s ../.husky .git/hooks"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"browserslist": [
"defaults",
"not IE 11",
"maintained node versions",
"> 5% in VN"
],
"dependencies": {
"canvas-confetti": "^1.4.0",
"svelte-local-storage-store": "^0.2.4",
"svelte-meta-tags": "^1.2.2"
},
"devDependencies": {
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@iconify/json": "^1.1.402",
"@squoosh/lib": "^0.4.0",
"@sveltejs/vite-plugin-svelte": "^1.0.0-next.22",
"@vitejs/plugin-legacy": "^1.5.3",
"@windicss/plugin-scrollbar": "^1.2.3",
"autoprefixer": "^10.3.4",
"concurrently": "^6.2.1",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-html": "^6.1.2",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-svelte3": "^3.2.1",
"format-package": "^6.1.0",
"husky": "^7.0.2",
"lint-staged": "^11.1.2",
"postcss": "^8.3.6",
"postcss-preset-env": "^6.7.0",
"prettier": "^2.4.0",
"prettier-plugin-svelte": "^2.4.0",
"shx": "^0.3.3",
"stylelint": "^13.13.1",
"stylelint-a11y": "^1.2.3",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-standard": "^22.0.0",
"svelte": "^3.42.4",
"svelte-dark-mode": "^2.0.0",
"unplugin-icons": "^0.11.3",
"vite": "^2.5.6",
"vite-plugin-html": "^2.1.0",
"vite-plugin-pwa": "^0.11.2",
"vite-plugin-svg-sprite": "^0.2.3",
"vite-plugin-windicss": "^1.4.2",
"windicss": "^3.1.7",
"windicss-analysis": "^0.3.4"
},
"lint-staged": {
"*.js": "eslint --cache --fix",
"*.css": "stylelint --fix",
"*.diff": "prettier --write"
}
}