forked from PanJiaChen/vue-element-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump: update to vue-cli@4 (PanJiaChen#3028)
- Loading branch information
Showing
7 changed files
with
89 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
module.exports = { | ||
presets: [ | ||
'@vue/app' | ||
] | ||
// https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app | ||
'@vue/cli-plugin-babel/preset' | ||
], | ||
'env': { | ||
'development': { | ||
// babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require(). | ||
// This plugin can significantly increase the speed of hot updates, when you have a large number of pages. | ||
// https://panjiachen.github.io/vue-element-admin-site/guide/advanced/lazy-loading.html | ||
'plugins': ['dynamic-import-node'] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,49 +3,22 @@ | |
"version": "4.3.1", | ||
"description": "A magical vue admin. An out-of-box UI solution for enterprise applications. Newest development stack of vue. Lots of awesome features", | ||
"author": "Pan <[email protected]>", | ||
"license": "MIT", | ||
"scripts": { | ||
"dev": "vue-cli-service serve", | ||
"lint": "eslint --ext .js,.vue src", | ||
"build:prod": "vue-cli-service build", | ||
"build:stage": "vue-cli-service build --mode staging", | ||
"preview": "node build/index.js --preview", | ||
"lint": "eslint --ext .js,.vue src", | ||
"test:unit": "jest --clearCache && vue-cli-service test:unit", | ||
"test:ci": "npm run lint && npm run test:unit", | ||
"new": "plop", | ||
"svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml", | ||
"new": "plop" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
}, | ||
"lint-staged": { | ||
"src/**/*.{js,vue}": [ | ||
"eslint --fix", | ||
"git add" | ||
] | ||
}, | ||
"keywords": [ | ||
"vue", | ||
"admin", | ||
"dashboard", | ||
"element-ui", | ||
"boilerplate", | ||
"admin-template", | ||
"management-system" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/PanJiaChen/vue-element-admin.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/PanJiaChen/vue-element-admin/issues" | ||
"test:unit": "jest --clearCache && vue-cli-service test:unit", | ||
"test:ci": "npm run lint && npm run test:unit" | ||
}, | ||
"dependencies": { | ||
"axios": "0.18.1", | ||
"clipboard": "2.0.4", | ||
"codemirror": "5.45.0", | ||
"core-js": "3.6.5", | ||
"driver.js": "0.9.5", | ||
"dropzone": "5.5.1", | ||
"echarts": "4.2.1", | ||
|
@@ -71,40 +44,68 @@ | |
"xlsx": "0.14.1" | ||
}, | ||
"devDependencies": { | ||
"@vue/cli-plugin-babel": "3.5.3", | ||
"@vue/cli-plugin-eslint": "^3.9.1", | ||
"@vue/cli-plugin-unit-jest": "3.5.3", | ||
"@vue/cli-service": "3.5.3", | ||
"@vue/cli-plugin-babel": "4.4.4", | ||
"@vue/cli-plugin-eslint": "4.4.4", | ||
"@vue/cli-plugin-unit-jest": "4.4.4", | ||
"@vue/cli-service": "4.4.4", | ||
"@vue/test-utils": "1.0.0-beta.29", | ||
"autoprefixer": "^9.5.1", | ||
"babel-core": "7.0.0-bridge.0", | ||
"babel-eslint": "10.0.1", | ||
"autoprefixer": "9.5.1", | ||
"babel-eslint": "10.1.0", | ||
"babel-jest": "23.6.0", | ||
"babel-plugin-dynamic-import-node": "2.3.3", | ||
"chalk": "2.4.2", | ||
"chokidar": "2.1.5", | ||
"connect": "3.6.6", | ||
"eslint": "5.15.3", | ||
"eslint-plugin-vue": "5.2.2", | ||
"eslint": "6.7.2", | ||
"eslint-plugin-vue": "6.2.2", | ||
"html-webpack-plugin": "3.2.0", | ||
"husky": "1.3.1", | ||
"lint-staged": "8.1.5", | ||
"mockjs": "1.0.1-beta3", | ||
"plop": "2.3.0", | ||
"runjs": "^4.3.2", | ||
"sass": "^1.26.2", | ||
"sass-loader": "^7.1.0", | ||
"runjs": "4.3.2", | ||
"sass": "1.26.2", | ||
"sass-loader": "8.0.2", | ||
"script-ext-html-webpack-plugin": "2.1.3", | ||
"serve-static": "^1.13.2", | ||
"serve-static": "1.13.2", | ||
"svg-sprite-loader": "4.1.3", | ||
"svgo": "1.2.0", | ||
"vue-template-compiler": "2.6.10" | ||
}, | ||
"browserslist": [ | ||
"> 1%", | ||
"last 2 versions" | ||
], | ||
"bugs": { | ||
"url": "https://github.com/PanJiaChen/vue-element-admin/issues" | ||
}, | ||
"engines": { | ||
"node": ">=8.9", | ||
"npm": ">= 3.0.0" | ||
}, | ||
"browserslist": [ | ||
"> 1%", | ||
"last 2 versions" | ||
] | ||
"keywords": [ | ||
"vue", | ||
"admin", | ||
"dashboard", | ||
"element-ui", | ||
"boilerplate", | ||
"admin-template", | ||
"management-system" | ||
], | ||
"license": "MIT", | ||
"lint-staged": { | ||
"src/**/*.{js,vue}": [ | ||
"eslint --fix", | ||
"git add" | ||
] | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/PanJiaChen/vue-element-admin.git" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters