-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
78 lines (78 loc) · 2.82 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
{
"scripts": {
"format": "prettier --write \"./src/**/*.{html,vue,ts,js,json,md,cjs,scss}\"",
"format:-------des": "格式化代码",
"lint": "npm run format && npm run lint:script && npm run lint:style",
"lint:-------des": "格式化代码并校验",
"lint:script": "eslint --ext .js,.jsx,.cjs,.ts,.tsx,.vue --fix --quiet ./",
"lint:script:-------des": "格式化script代码",
"lint:style": "stylelint --fix \"src/**/*.{css,scss,vue}\"",
"lint:style:-------des": "格式化style代码",
"test": "vitest",
"coverage": "vitest run --coverage",
"build": "nuxt build",
"build:-------des": "构建代码,同时生成nodejs服务端代码",
"dev": "nuxt dev",
"dev:-------des": "本地运行",
"generate": "nuxt generate",
"preview": "nuxt preview",
"generate:-------des": "仅生成静态文件",
"postinstall": "nuxt prepare",
"postinstall:-------des": "在npm install命令后执行. nuxt prepare",
"prepare": "husky install",
"prepare:-------des": "在两种情况前运行,一是npm publish命令前,二是不带参数的npm install命令;它会在prepublish之后、prepublishOnly之前执行. 执行husky install git钩子"
},
"lint-staged": {
"**/*.{js,jsx,tsx,ts,vue,scss,json,cjs}": [
"npm run lint"
]
},
"devDependencies": {
"@commitlint/cli": "^17.3.0",
"@commitlint/config-conventional": "^17.3.0",
"@types/eslint": "^8.4.10",
"@types/jest": "^26.0.22",
"@types/node": "^18.11.9",
"@types/qs": "^6.9.7",
"@typescript-eslint/eslint-plugin": "^5.48.0",
"@typescript-eslint/parser": "^5.48.0",
"@unocss/nuxt": "^0.48.4",
"@vitejs/plugin-vue": "^4.0.0",
"@vue/test-utils": "^2.2.7",
"autoprefixer": "^10.4.13",
"commitlint": "^17.3.0",
"eslint": "^7.24.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^24.3.5",
"eslint-plugin-prettier": "^3.4.1",
"eslint-plugin-vue": "^9.8.0",
"husky": "^8.0.2",
"jsdom": "^21.0.0",
"lint-staged": "^13.1.0",
"nuxt": "3.0.0",
"postcss": "^8.4.20",
"postcss-html": "^1.5.0",
"postcss-scss": "^4.0.6",
"prettier": "^2.2.1",
"sass": "^1.57.1",
"stylelint": "^14.16.1",
"stylelint-config-prettier": "^9.0.4",
"stylelint-config-recess-order": "^3.0.0",
"stylelint-config-recommended-scss": "^8.0.0",
"stylelint-config-recommended-vue": "^1.4.0",
"stylelint-config-standard": "^29.0.0",
"stylelint-config-standard-scss": "^6.0.0",
"stylelint-config-standard-vue": "^1.0.0",
"stylelint-order": "^5.0.0",
"stylelint-prettier": "^2.0.0",
"stylelint-scss": "^4.3.0",
"vite": "^4.0.4",
"vitest": "^0.26.3"
},
"dependencies": {
"axios": "^1.2.2",
"vue": "^3.2.45"
}
}