package.json
1.23 KB
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
{
"name": "yoho-miniapp-eshop",
"version": "1.0.0",
"description": "yoho-miniapp-eshop",
"main": "app.js",
"scripts": {
"static": "node ./bin/cli static -o ./app",
"upload": "node ./bin/cli upload -p ./app",
"lint-css": "stylelint -s scss --cache --custom-formatter ./node_modules/stylelint-formatter-table ./**/*.wxss",
"lint-js": "eslint --fix --format table --ext .js,.wxs --cache .",
"lint-all": "echo \"JS: \";npm run -s lint-js;echo \"CSS: \";npm run -s lint-css",
"precommit": "lint-staged"
},
"lint-staged": {
"*.{js,wxs}": [
"eslint --fix",
"git add"
],
"*.{wxss,scss,css}": [
"stylelint --fix",
"git add"
]
},
"repository": {
"type": "git",
"url": "git@git.yoho.cn:fe/yoho-miniapp-eshop.git"
},
"keywords": [
"yoho"
],
"author": "yoho <fe@yoho.cn> (http://yoho.cn/)",
"license": "UNLICENSED",
"devDependencies": {
"eslint": "^4.16.0",
"eslint-config-yoho": "^1.0.9",
"husky": "^0.14.3",
"inquirer": "^6.0.0",
"lint-staged": "^7.2.0",
"lodash": "^4.17.10",
"shelljs": "^0.8.2",
"stylelint": "^8.4.0",
"stylelint-config-yoho": "^1.2.12",
"stylelint-formatter-table": "^1.0.4",
"yargs": "^11.0.0"
}
}