diff --git a/package.json b/package.json index 27f70d9..50abf17 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,14 @@ { "name": "dc3-web", - "author": "pnoker", + "version": "3.0.0", "private": true, + "author": "pnoker", "description": "IOT DC3 平台UI", "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", - "lint": "vue-cli-service lint" + "lint": "vue-cli-service lint", + "analyz": "npm_config_report=true npm run build" }, "dependencies": { "axios": "^0.19.1", @@ -32,6 +34,16 @@ "vue-cli-plugin-element": "^1.0.1", "vue-template-compiler": "^2.6.11" }, + "lint-staged": { + "*.js": [ + "vue-cli-service lint", + "git add" + ], + "*.vue": [ + "vue-cli-service lint", + "git add" + ] + }, "eslintConfig": { "root": true, "env": { @@ -42,7 +54,8 @@ "eslint:recommended" ], "rules": { - "no-console": "off" + "no-console": "off", + "no-debugger": "off" }, "parserOptions": { "parser": "babel-eslint" @@ -55,6 +68,7 @@ }, "browserslist": [ "> 1%", - "last 2 versions" + "last 2 versions", + "not ie <= 8" ] } diff --git a/public/index.html b/public/index.html index 5fb63c6..7ec8c82 100644 --- a/public/index.html +++ b/public/index.html @@ -1,16 +1,92 @@ - +
- + - + + + + +