-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
105 lines (105 loc) · 3.42 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
101
102
103
104
105
{
"name": "good-mock",
"version": "1.2.13",
"description": "好用的 Mock 数据模板",
"main": "dist/index.js",
"module": "dist/index-esm-min.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"bin": {
"good-mock": "./lib/index.js"
},
"license": "ISC",
"author": "chenjiajing",
"private": false,
"homepage": "https://github.com/chenjiajing23/good-mock",
"repository": {
"type": "git",
"url": "https://github.com/chenjiajing23/good-mock.git"
},
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
"keywords": [
"mock",
"typescript"
],
"scripts": {
"dev": "rollup -c --watch",
"build": "rm -rf dist/* && cp -R lib dist && NODE_ENV=production rollup -c",
"build:win": "rm -rf dist/* && cross-env NODE_ENV=production rollup -c",
"fix": "eslint src --ext .tsx,.ts --color --fix",
"test": "parcel test/index.html --out-dir test/dist --port 3000",
"mock": "npm run build && npm link good-mock && nodemon -e ts,js --watch mock --exec ts-node ./dist/lib/index.js",
"gc": "git-cz",
"patch": "standard-version -r patch",
"minor": "standard-version -r minor",
"major": "standard-version -r major",
"pub": "npm run build && npx git push --follow-tags origin master && npx npm publish --access=public"
},
"dependencies": {
"chalk": "^4.1.1",
"express": "^4.17.1",
"get-port": "^5.1.1",
"glob": "^7.1.7",
"nodemon": "^2.0.12",
"path-to-regexp": "^6.2.0",
"ts-node": "^10.1.0"
},
"devDependencies": {
"@babel/core": "^7.14.6",
"@babel/plugin-transform-runtime": "^7.14.5",
"@babel/preset-env": "^7.14.7",
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"@types/express": "^4.17.13",
"@types/glob": "^7.1.4",
"@types/node": "^16.3.1",
"@types/path-to-regexp": "^1.7.0",
"@typescript-eslint/eslint-plugin": "^4.28.3",
"@typescript-eslint/parser": "^4.28.3",
"commitizen": "^4.2.4",
"core-js": "^3.15.2",
"cross-env": "^7.0.3",
"eslint": "^7.30.0",
"eslint-config-prettier": "^8.3.0",
"good-mock": "^1.2.10",
"husky": "^4.3.8",
"lint-staged": "^11.0.1",
"livereload": "^0.9.3",
"parcel": "2.0.0-beta.2",
"prettier": "^2.3.2",
"rollup": "^2.53.1",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-eslint": "^7.0.0",
"rollup-plugin-node-polyfills": "^0.2.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.30.0",
"rollup-watch": "^4.3.1",
"standard-version": "^9.3.0",
"typescript": "^4.3.5"
},
"config": {
"commitizen": {
"path": "node_modules/cz-conventional-changelog"
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"src/**/*.ts": [
"eslint src --ext .tsx,.ts --color --fix",
"prettier --write"
]
}
}