124 lines
3.6 KiB
JSON
124 lines
3.6 KiB
JSON
|
|
{
|
||
|
|
"name": "vue-pc-admin",
|
||
|
|
"version": "0.1.0",
|
||
|
|
"description": "这是一个基于 vue admin 管理后台",
|
||
|
|
"author": "cjw",
|
||
|
|
"license": "cn",
|
||
|
|
"scripts": {
|
||
|
|
"dev": "vue-cli-service serve",
|
||
|
|
"build": "vue-cli-service build",
|
||
|
|
"build:stage": "vue-cli-service build --mode staging",
|
||
|
|
"build:static": "vue-cli-service build --mode static",
|
||
|
|
"preview": "node build/index.js --preview",
|
||
|
|
"report": "node build/index.js --preview --report",
|
||
|
|
{{#if isEslint}}
|
||
|
|
"lint": "npm run lint-js && npm run lint-style",
|
||
|
|
"lint:fix": "npm run lint-js -- --fix && npm run lint-style -- --fix",
|
||
|
|
"lint-js": "eslint --ext .js,.vue src",
|
||
|
|
"lint-js:fix": "npm run lint-js -- --fix",
|
||
|
|
"lint-style": "stylelint src/**/*.{html,vue,css,sass,scss}",
|
||
|
|
"lint-style:fix": "npm run lint-style -- --fix",
|
||
|
|
{{/if}}
|
||
|
|
"test:unit": "jest --clearCache && vue-cli-service test:unit",
|
||
|
|
"test:ci": "npm run lint && npm run test:unit",
|
||
|
|
"svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml"
|
||
|
|
},
|
||
|
|
"dependencies": {
|
||
|
|
"@ckeditor/ckeditor5-vue": "^1.0.1",
|
||
|
|
"@toast-ui/editor": "^2.0.1",
|
||
|
|
"@toast-ui/vue-editor": "^2.0.1",
|
||
|
|
"axios": "0.18.1",
|
||
|
|
"codemirror": "5.39.2",
|
||
|
|
"deepmerge": "^4.2.2",
|
||
|
|
"driver.js": "^0.9.8",
|
||
|
|
"echarts": "^4.7.0",
|
||
|
|
"element-ui": "^2.13.0",
|
||
|
|
"file-saver": "^2.0.2",
|
||
|
|
"js-cookie": "2.2.0",
|
||
|
|
"lodash.clonedeep": "^4.5.0",
|
||
|
|
"normalize.css": "7.0.0",
|
||
|
|
"nprogress": "0.2.0",
|
||
|
|
"path-to-regexp": "2.4.0",
|
||
|
|
"qiniu-js": "^3.1.2",
|
||
|
|
"screenfull": "^5.0.2",
|
||
|
|
"sortablejs": "^1.10.2",
|
||
|
|
"throttle-debounce": "^1.1.0",
|
||
|
|
"v-loading-plugin": "^1.0.7",
|
||
|
|
"vue": "2.6.10",
|
||
|
|
"vue-router": "3.0.6",
|
||
|
|
"vuedraggable": "^2.24.3",
|
||
|
|
"vuex": "3.1.0",
|
||
|
|
"webpack-api-mocker": "^1.7.6",
|
||
|
|
"xlsx": "^0.15.6",
|
||
|
|
"webpack-theme-color-replacer": "^1.3.7"
|
||
|
|
},
|
||
|
|
"devDependencies": {
|
||
|
|
"@babel/core": "7.0.0",
|
||
|
|
"@babel/plugin-transform-modules-commonjs": "^7.9.0",
|
||
|
|
"@babel/register": "7.0.0",
|
||
|
|
"@vue/cli-plugin-babel": "3.6.0",
|
||
|
|
"@vue/cli-plugin-eslint": "^3.9.1",
|
||
|
|
"@vue/cli-plugin-unit-jest": "3.6.3",
|
||
|
|
"@vue/cli-service": "^3.12.1",
|
||
|
|
"@vue/test-utils": "1.0.0-beta.29",
|
||
|
|
"autoprefixer": "^9.5.1",
|
||
|
|
"babel-core": "7.0.0-bridge.0",
|
||
|
|
"babel-eslint": "10.0.1",
|
||
|
|
"babel-jest": "23.6.0",
|
||
|
|
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
|
||
|
|
"chalk": "2.4.2",
|
||
|
|
"compression-webpack-plugin": "^3.1.0",
|
||
|
|
"connect": "3.6.6",
|
||
|
|
"css-properties-sorting": "^1.0.10",
|
||
|
|
"eslint": "5.15.3",
|
||
|
|
"eslint-plugin-vue": "5.2.2",
|
||
|
|
"html-webpack-plugin": "3.2.0",
|
||
|
|
"husky": "^1.3.1",
|
||
|
|
"lint-staged": "8.1.5",
|
||
|
|
"mockjs": "1.0.1-beta3",
|
||
|
|
"node-sass": "^4.9.0",
|
||
|
|
"open": "^7.0.3",
|
||
|
|
"postcss-loader": "^3.0.0",
|
||
|
|
"raw-loader": "^0.5.1",
|
||
|
|
"runjs": "^4.3.2",
|
||
|
|
"sass-loader": "^7.1.0",
|
||
|
|
"sass-resources-loader": "^2.0.3",
|
||
|
|
"script-ext-html-webpack-plugin": "2.1.3",
|
||
|
|
"script-loader": "0.7.2",
|
||
|
|
"serve-static": "^1.13.2",
|
||
|
|
"stylelint": "^12.0.1",
|
||
|
|
"stylelint-config-standard": "^20.0.0",
|
||
|
|
"stylelint-order": "^4.1.0",
|
||
|
|
"stylelint-scss": "^3.18.0",
|
||
|
|
"svg-sprite-loader": "4.1.3",
|
||
|
|
"svgo": "1.2.2",
|
||
|
|
"vue-template-compiler": "2.6.10"
|
||
|
|
},
|
||
|
|
{{#if isEslint}}
|
||
|
|
"husky": {
|
||
|
|
"hooks": {
|
||
|
|
"pre-commit": "lint-staged"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"lint-staged": {
|
||
|
|
"src/**/*.{js,vue}": [
|
||
|
|
"eslint --fix",
|
||
|
|
"git add"
|
||
|
|
],
|
||
|
|
"src/**/*.{html,vue,css,sass,scss}": [
|
||
|
|
"stylelint --fix",
|
||
|
|
"git add"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
{{/if}}
|
||
|
|
"engines": {
|
||
|
|
"node": ">=8.9",
|
||
|
|
"npm": ">= 3.0.0"
|
||
|
|
},
|
||
|
|
"browserslist": [
|
||
|
|
"> 1%",
|
||
|
|
"last 2 versions",
|
||
|
|
"not ie <= 11"
|
||
|
|
]
|
||
|
|
}
|