-
Notifications
You must be signed in to change notification settings - Fork 50
/
package.json
62 lines (62 loc) · 1.69 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
{
"name": "umi-blocks",
"version": "1.0.0",
"files": [
"blocks",
"dist",
"templates"
],
"scripts": {
"build": "node ./_scripts/build.js",
"create": "node ./_scripts/create.js",
"lint": "eslint --ext .js src mock tests && npm run lint:style",
"lint-staged": "lint-staged",
"lint-staged:js": "eslint --ext .js",
"lint:fix": "eslint --fix --ext .js src mock tests && npm run lint:style",
"lint:style": "stylelint \"src/**/*.less\" --syntax less",
"prettier": "prettier -c --write \"**/*\"",
"screenshot": "pro screenshot",
"start": "umi block_dev"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint-staged"
}
},
"lint-staged": {
"**/*.less": "stylelint --syntax less",
"x/**/*.{js,jsx}": "npm run lint-staged:js",
"x/**/*.{js,ts,tsx,json,jsx,less}": [
"node ./_scripts/lint-prettier.js",
"git add"
]
},
"devDependencies": {
"@ant-design/pro-cli": "^1.0.5",
"@ant-design/pro-layout": "^4.5.16",
"@umijs/fabric": "^2.0.0",
"cross-env": "^6.0.0",
"eslint": "^6.8.0",
"glob": "^7.1.4",
"husky": "^4.0.7",
"import-sort-cli": "^6.0.0",
"import-sort-parser-babylon": "^6.0.0",
"import-sort-parser-typescript": "^6.0.0",
"import-sort-style-module": "^6.0.0",
"lint-staged": "^9.5.0",
"mkdirp": "^0.5.1",
"prettier": "1.19.1",
"stylelint": "^13.0.0",
"stylelint-config-prettier": "^8.0.0",
"stylelint-config-standard": "^19.0.0",
"typescript": "^3.5.1",
"umi": "^2.13.0",
"umi-plugin-block-dev": "^3.0.1",
"umi-plugin-react": "^1.15.0",
"umi-request": "^1.2.17",
"yeoman-generator": "^4.1.0"
},
"engines": {
"node": "12.x"
}
}