加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
package.json 3.77 KB
一键复制 编辑 原始数据 按行查看 历史
kaikai 提交于 2018-07-18 19:15 . 1、增加swagger服务(npm run swagger)
{
"name": "react-hightweb",
"version": "0.0.1",
"private": false,
"dependencies": {
"antd": "^3.7.0",
"antd-mobile": "^2.2.2",
"autoprefixer": "7.1.6",
"babel-core": "6.26.0",
"babel-eslint": "7.2.3",
"babel-jest": "20.0.3",
"babel-loader": "7.1.2",
"babel-plugin-import": "^1.8.0",
"babel-plugin-transform-decorators-legacy": "^1.3.5",
"babel-polyfill": "^6.26.0",
"babel-preset-react-app": "^3.1.1",
"babel-runtime": "6.26.0",
"case-sensitive-paths-webpack-plugin": "2.1.1",
"chalk": "1.1.3",
"css-loader": "0.28.7",
"css-split-webpack-plugin": "^0.2.5",
"debug": "^3.1.0",
"dotenv": "4.0.0",
"dotenv-expand": "4.2.0",
"eslint": "4.10.0",
"eslint-config-react-app": "^2.1.0",
"eslint-config-standard": "^6.2.1",
"eslint-loader": "1.9.0",
"eslint-plugin-flowtype": "2.39.1",
"eslint-plugin-import": "2.8.0",
"eslint-plugin-jsx-a11y": "5.1.1",
"eslint-plugin-promise": "^3.8.0",
"eslint-plugin-react": "7.4.0",
"eslint-plugin-standard": "^2.0.1",
"extract-text-webpack-plugin": "3.0.2",
"file-loader": "1.1.5",
"font-awesome": "^4.7.0",
"fs-extra": "3.0.1",
"html-webpack-plugin": "2.29.0",
"jest": "20.0.4",
"knex": "^0.15.1",
"koa": "^2.5.2",
"koa-bodyparser": "^4.2.1",
"koa-compress": "^3.0.0",
"koa-convert": "^1.2.0",
"koa-multer": "^1.0.2",
"koa-router": "^7.4.0",
"koa-static": "^5.0.0",
"koa-static-cache": "^5.1.2",
"koa2-cors": "^2.0.6",
"less": "^3.7.1",
"less-loader": "^4.1.0",
"lodash": "^4.17.4",
"mysql": "^2.16.0",
"object-assign": "4.1.1",
"postcss-flexbugs-fixes": "3.2.0",
"postcss-loader": "2.0.8",
"promise": "8.0.1",
"prop-types": "^15.6.2",
"raf": "3.4.0",
"react": "^16.4.1",
"react-custom-scrollbars": "^4.2.1",
"react-dev-utils": "^5.0.1",
"react-dom": "^16.4.1",
"react-loadable": "^5.4.0",
"react-router": "^4.3.1",
"react-router-dom": "^4.3.1",
"resolve": "1.6.0",
"style-loader": "0.19.0",
"sw-precache-webpack-plugin": "0.11.4",
"sync-request": "^6.0.0",
"url-loader": "0.6.2",
"webpack": "3.8.1",
"webpack-dev-server": "2.9.4",
"webpack-manifest-plugin": "1.3.2",
"whatwg-fetch": "2.0.3"
},
"scripts": {
"start": "node scripts/start.js",
"dev": "node scripts/start.js",
"build": "node scripts/build.js",
"server": "nodemon --config server/nodemon.json --inspect server/app.js",
"swagger": "pm2 start swagger/app.js --name=swagger",
"test": "node scripts/test.js --env=jsdom"
},
"homepage": ".",
"proxy-test": {
"/api": {
"target": "xxxxxx",
"changeOrigin": true,
"pathRewrite": {
"^/api": ""
}
}
},
"jest": {
"collectCoverageFrom": [
"src/**/*.{js,jsx,mjs}"
],
"setupFiles": [
"<rootDir>/config/polyfills.js"
],
"testMatch": [
"<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}",
"<rootDir>/src/**/?(*.)(spec|test).{js,jsx,mjs}"
],
"testEnvironment": "node",
"testURL": "http://localhost",
"transform": {
"^.+\\.(js|jsx|mjs)$": "<rootDir>/node_modules/babel-jest",
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
"^(?!.*\\.(js|jsx|mjs|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
},
"transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs)$"
],
"moduleNameMapper": {
"^react-native$": "react-native-web"
},
"moduleFileExtensions": [
"web.js",
"js",
"json",
"web.jsx",
"jsx",
"node",
"mjs"
]
},
"babel": {
"presets": [
"react-app"
],
"plugins": [
"transform-decorators-legacy"
]
},
"eslintConfig": {
"extends": "react-app"
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化