UNPKG

1.54 kBJSONView Raw
1{
2 "name": "@forchange/mock",
3 "version": "0.2.11",
4 "description": "基于 koa 的本地 mock 服务 - 长链接 - socket - 自定义错误状态 - 接口之间的隔离 - 接口之间可以联动处理(数据传递) - 简单易用,容易扩展",
5 "main": "index.js",
6 "scripts": {
7 "web": "parcel web/index.html",
8 "socket": "node lib/socket/index.js",
9 "test": "echo \"Error: no test specified\" && exit 1"
10 },
11 "bin": {
12 "forchange-mock": "./index.js",
13 "fmock": "./index.js",
14 "cmock": "./index.js"
15 },
16 "repository": {
17 "type": "git",
18 "url": "git@git.forchange.cn:newbility/mock.git"
19 },
20 "author": "forchange/NEWBILITY",
21 "license": "ISC",
22 "dependencies": {
23 "chalk": "^2.4.2",
24 "commander": "^2.20.0",
25 "download-git-repo": "^2.0.0",
26 "events": "^3.0.0",
27 "faker": "^4.1.0",
28 "fs": "^0.0.1-security",
29 "glob": "^7.1.4",
30 "inquirer": "^6.5.1",
31 "koa": "^2.7.0",
32 "koa-bodyparser": "^4.2.1",
33 "koa-route": "^3.2.0",
34 "koa-router": "^7.4.0",
35 "koa-views": "^6.2.0",
36 "koa-websocket": "^6.0.0",
37 "mkdirp": "^0.5.1",
38 "ora": "^3.4.0",
39 "path": "^0.12.7",
40 "supervisor": "^0.12.0",
41 "yargs": "^13.3.0"
42 },
43 "husky": {
44 "hooks": {
45 "pre-commit": "sh ./blockfieldlint.sh && tslint -p ./ && lint-staged",
46 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
47 }
48 },
49 "lint-staged": {
50 "*.{js,ts,tsx,jsx,css,less,md}": [
51 "prettier --write",
52 "git add"
53 ]
54 },
55 "devDependencies": {
56 "nodemon": "^1.19.1"
57 }
58}