2017-07-03 16:16:05 +08:00
|
|
|
{
|
|
|
|
"name": "yapi",
|
2018-02-22 16:07:26 +08:00
|
|
|
"version": "1.3.6",
|
2017-07-05 19:31:50 +08:00
|
|
|
"description": "YAPI",
|
2017-07-03 16:16:05 +08:00
|
|
|
"main": "index.js",
|
|
|
|
"scripts": {
|
2017-09-06 10:18:13 +08:00
|
|
|
"dev-server": " nodemon server/app.js dev -L",
|
|
|
|
"install-server": " node server/install.js",
|
2017-09-06 11:09:15 +08:00
|
|
|
"dev-client": "ykit s -p 4000",
|
2017-09-03 10:08:39 +08:00
|
|
|
"dev": "npm run dev-server & npm run dev-client",
|
2017-10-19 15:59:14 +08:00
|
|
|
"start": " node server/app.js",
|
|
|
|
"test": "ava"
|
2017-07-03 16:16:05 +08:00
|
|
|
},
|
2017-11-27 20:11:28 +08:00
|
|
|
"scripts-info": {
|
|
|
|
"start": "运行生产环境服务器",
|
|
|
|
"install-server": "初始化数据库数据,用于安装",
|
|
|
|
"dev": "运行开发服务器",
|
|
|
|
"dev-server": "运行后端开发服务器",
|
|
|
|
"dev-client": "运行前端开发服务器",
|
|
|
|
"test": "执行测试"
|
|
|
|
},
|
2017-07-03 16:16:05 +08:00
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
2017-10-19 15:59:14 +08:00
|
|
|
"url": "git@github.com:YMFE/yapi.git"
|
2017-07-03 16:16:05 +08:00
|
|
|
},
|
|
|
|
"author": "",
|
2017-10-08 16:20:27 +08:00
|
|
|
"license": "Apache2.0",
|
2017-07-03 16:16:05 +08:00
|
|
|
"dependencies": {
|
2017-12-15 10:49:48 +08:00
|
|
|
"ajv": "^5.5.1",
|
|
|
|
"ajv-i18n": "^2.2.0",
|
2017-07-12 12:00:49 +08:00
|
|
|
"axios": "^0.16.2",
|
2018-02-28 16:59:29 +08:00
|
|
|
"copy-to-clipboard": "3.0.8",
|
2018-02-01 16:52:03 +08:00
|
|
|
"cpu-load": "^1.0.0",
|
2018-01-05 11:53:56 +08:00
|
|
|
"deep-extend": "^0.5.0",
|
2017-10-16 20:33:23 +08:00
|
|
|
"deref": "^0.7.0",
|
2017-12-15 10:49:48 +08:00
|
|
|
"easy-json-schema": "0.0.2-beta",
|
2017-07-03 16:16:05 +08:00
|
|
|
"fs-extra": "^3.0.1",
|
2018-02-26 15:46:10 +08:00
|
|
|
"immer": "^1.1.1",
|
2017-11-13 16:49:12 +08:00
|
|
|
"js-base64": "^2.3.2",
|
2018-03-05 11:04:29 +08:00
|
|
|
"json-schema-faker": "^0.5.0-rc13",
|
|
|
|
"json-schema-ref-parser": "4.0.0",
|
2018-02-28 16:59:29 +08:00
|
|
|
"json5": "0.5.1",
|
|
|
|
"jsondiffpatch": "0.2.5",
|
|
|
|
"jsonwebtoken": "7.4.1",
|
|
|
|
"koa": "2.0.0",
|
|
|
|
"koa-bodyparser": "3.2.0",
|
|
|
|
"koa-multer": "1.0.2",
|
2017-07-03 16:16:05 +08:00
|
|
|
"koa-mysql-session": "0.0.2",
|
|
|
|
"koa-router": "^7.0.1",
|
2018-02-28 16:59:29 +08:00
|
|
|
"koa-send": "3.2.0",
|
|
|
|
"koa-session-minimal": "3.0.3",
|
|
|
|
"koa-static": "3.0.0",
|
|
|
|
"koa-websocket": "4.0.0",
|
2017-12-11 11:44:21 +08:00
|
|
|
"ldapjs": "^1.0.1",
|
2018-02-28 16:59:29 +08:00
|
|
|
"markdown-it": "8.4.0",
|
|
|
|
"markdown-it-anchor": "4.0.0",
|
|
|
|
"markdown-it-table-of-contents": "0.3.2",
|
|
|
|
"md5": "2.2.1",
|
|
|
|
"mockjs": "1.0.1-beta3",
|
|
|
|
"moment": "2.18.1",
|
2017-10-31 15:56:21 +08:00
|
|
|
"mongoose": "4.7.0",
|
2018-02-28 16:59:29 +08:00
|
|
|
"mongoose-auto-increment": "5.0.1",
|
|
|
|
"nodemailer": "4.0.1",
|
|
|
|
"os": "0.1.1",
|
|
|
|
"request": "2.81.0",
|
|
|
|
"sha.js": "2.4.9",
|
|
|
|
"sha1": "1.1.1",
|
|
|
|
"tslib": "1.8.0",
|
|
|
|
"underscore": "1.8.3",
|
|
|
|
"url": "0.11.0",
|
|
|
|
"yapi-plugin-qsso": "^1.1.0"
|
2017-09-26 14:19:07 +08:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2018-03-05 11:04:29 +08:00
|
|
|
"antd": "^3.1.6",
|
2018-01-31 11:08:15 +08:00
|
|
|
"anujs": "^1.2.6",
|
2017-09-26 14:24:44 +08:00
|
|
|
"assets-webpack-plugin": "^3.5.1",
|
2017-10-19 15:59:14 +08:00
|
|
|
"ava": "^0.22.0",
|
2017-09-26 14:24:44 +08:00
|
|
|
"babel": "^6.5.2",
|
|
|
|
"babel-core": "^6.8.0",
|
|
|
|
"babel-eslint": "^7.2.3",
|
|
|
|
"babel-loader": "^6.2.4",
|
|
|
|
"babel-plugin-import": "^1.3.1",
|
|
|
|
"babel-plugin-transform-decorators-legacy": "^1.3.4",
|
|
|
|
"babel-plugin-transform-object-rest-spread": "^6.8.0",
|
|
|
|
"babel-plugin-transform-runtime": "^6.9.0",
|
2017-11-27 13:56:10 +08:00
|
|
|
"babel-plugin-webpack-alias": "^2.1.2",
|
2017-09-26 14:24:44 +08:00
|
|
|
"babel-preset-es2015": "^6.9.0",
|
|
|
|
"babel-preset-react": "^6.5.0",
|
|
|
|
"babel-preset-stage-3": "^6.24.1",
|
|
|
|
"babel-register": "^6.9.0",
|
|
|
|
"babel-runtime": "^6.9.2",
|
|
|
|
"brace": "^0.10.0",
|
|
|
|
"buffer-shims": "^1.0.0",
|
|
|
|
"compression-webpack-plugin": "^1.0.0",
|
2017-09-26 14:19:07 +08:00
|
|
|
"copy-webpack-plugin": "^4.0.1",
|
|
|
|
"core-decorators": "^0.17.0",
|
|
|
|
"css-loader": "^0.28.4",
|
|
|
|
"eslint": "^3.19.0",
|
|
|
|
"eslint-loader": "^1.9.0",
|
|
|
|
"eslint-plugin-import": "^2.2.0",
|
|
|
|
"eslint-plugin-react": "^7.1.0",
|
2017-09-26 14:24:44 +08:00
|
|
|
"extract-text-webpack-plugin": "2.0.0",
|
2017-11-19 19:47:14 +08:00
|
|
|
"fast-sass-loader-china": "1.2.5",
|
2017-09-26 14:24:44 +08:00
|
|
|
"ghooks": "^2.0.0",
|
2017-10-19 15:59:14 +08:00
|
|
|
"happypack": "^4.0.0-beta.5",
|
2017-09-26 14:19:07 +08:00
|
|
|
"less": "^2.7.2",
|
|
|
|
"less-loader": "^4.0.5",
|
2017-11-19 19:47:14 +08:00
|
|
|
"node-sass-china": "4.5.0",
|
2017-09-26 14:24:44 +08:00
|
|
|
"nodemon": "^1.11.0",
|
2017-10-19 15:59:14 +08:00
|
|
|
"prop-types": "^15.5.10",
|
|
|
|
"rc-queue-anim": "^1.2.0",
|
|
|
|
"rc-scroll-anim": "^1.0.7",
|
2017-11-02 20:49:41 +08:00
|
|
|
"rc-tween-one": "^1.5.5",
|
2018-02-28 16:09:24 +08:00
|
|
|
"react": "^16.2.0",
|
2017-09-19 17:20:37 +08:00
|
|
|
"react-dnd": "^2.5.1",
|
|
|
|
"react-dnd-html5-backend": "^2.5.1",
|
2018-02-28 16:09:24 +08:00
|
|
|
"react-dom": "^16.2.0",
|
2017-08-08 14:45:19 +08:00
|
|
|
"react-redux": "^5.0.5",
|
|
|
|
"react-router-dom": "^4.1.1",
|
|
|
|
"react-scripts": "1.0.10",
|
2017-09-19 17:20:37 +08:00
|
|
|
"reactabular-dnd": "^8.9.0",
|
|
|
|
"reactabular-table": "^8.9.0",
|
2017-10-27 12:13:59 +08:00
|
|
|
"recharts": "^1.0.0-beta.0",
|
2017-07-09 21:33:21 +08:00
|
|
|
"redux": "^3.7.1",
|
2017-09-26 14:24:44 +08:00
|
|
|
"redux-devtools": "^3.4.0",
|
|
|
|
"redux-devtools-dock-monitor": "^1.1.2",
|
|
|
|
"redux-devtools-log-monitor": "^1.3.0",
|
2017-07-12 11:39:06 +08:00
|
|
|
"redux-promise": "^0.5.3",
|
|
|
|
"redux-thunk": "^2.2.0",
|
2017-10-20 13:30:05 +08:00
|
|
|
"rewire": "^2.5.2",
|
2017-07-25 14:18:57 +08:00
|
|
|
"string-replace-webpack-plugin": "^0.1.3",
|
2017-08-08 14:45:19 +08:00
|
|
|
"style-loader": "^0.18.2",
|
2017-09-26 14:24:44 +08:00
|
|
|
"table-resolver": "^3.2.0",
|
2018-03-05 11:04:29 +08:00
|
|
|
"tui-editor": "^1.0.4",
|
2017-08-08 14:45:19 +08:00
|
|
|
"validate-commit-msg": "^2.12.2",
|
2017-09-25 10:39:49 +08:00
|
|
|
"webpack": "^2.2.0",
|
2017-09-06 10:18:13 +08:00
|
|
|
"webpack-dev-middleware": "^1.12.0",
|
2017-09-26 14:24:44 +08:00
|
|
|
"webpack-node-externals": "^1.6.0",
|
2018-01-31 11:08:15 +08:00
|
|
|
"ykit-config-antd": "0.1.3",
|
2017-09-26 14:24:44 +08:00
|
|
|
"ykit-config-es6": "^1.1.0"
|
2017-07-03 16:16:05 +08:00
|
|
|
},
|
2017-07-14 12:18:55 +08:00
|
|
|
"config": {
|
2017-07-19 15:12:10 +08:00
|
|
|
"ghooks": {
|
|
|
|
"commit-msg": "validate-commit-msg"
|
2017-07-14 12:18:55 +08:00
|
|
|
},
|
2017-07-19 15:12:10 +08:00
|
|
|
"validate-commit-msg": {
|
|
|
|
"types": [
|
|
|
|
"feat",
|
|
|
|
"fix",
|
|
|
|
"docs",
|
|
|
|
"test",
|
|
|
|
"chore",
|
|
|
|
"refactor",
|
|
|
|
"opti"
|
|
|
|
],
|
|
|
|
"warnOnFail": false,
|
|
|
|
"maxSubjectLength": 100,
|
|
|
|
"subjectPattern": ".+",
|
|
|
|
"subjectPatternErrorMsg": "请输入message信息!",
|
|
|
|
"helpMessage": "Commit message 格式错误, \n请查看规范: http://wiki.corp.qunar.com/pages/viewpage.action?pageId=159698767"
|
|
|
|
}
|
|
|
|
},
|
2017-07-03 16:16:05 +08:00
|
|
|
"engines": {
|
2017-10-08 16:20:27 +08:00
|
|
|
"node": ">= 7.6.0",
|
|
|
|
"npm": ">= 4.1.2"
|
2017-10-19 15:59:14 +08:00
|
|
|
},
|
2017-11-27 13:56:10 +08:00
|
|
|
"babel": {
|
|
|
|
"presets": [
|
|
|
|
[
|
|
|
|
"es2015",
|
|
|
|
{
|
|
|
|
"loose": true,
|
|
|
|
"modules": "commonjs"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"es2017",
|
|
|
|
"stage-0",
|
|
|
|
"react"
|
|
|
|
],
|
|
|
|
"plugins": [
|
|
|
|
"transform-runtime",
|
2017-11-27 14:48:13 +08:00
|
|
|
[
|
|
|
|
"webpack-alias",
|
|
|
|
{
|
|
|
|
"config": "webpack.alias.js"
|
|
|
|
}
|
|
|
|
]
|
2017-11-27 13:56:10 +08:00
|
|
|
]
|
|
|
|
},
|
2017-10-20 13:30:05 +08:00
|
|
|
"ava": {
|
|
|
|
"files": [
|
|
|
|
"test/**/*.js"
|
2017-11-27 13:56:10 +08:00
|
|
|
],
|
|
|
|
"require": [
|
|
|
|
"babel-register"
|
|
|
|
],
|
|
|
|
"babel": "inherit"
|
2017-07-03 16:16:05 +08:00
|
|
|
}
|
|
|
|
}
|