vue-cli-plugin-admin-element
This is a plugin for vue-cli@3, Which can generate a full project based on Elmenent-UI.
Usage
In a new project created by vue-cli@3:
vue add admin-element
or
Find your vue-cli preset in ~/.vuerc
, add an preset like below:
{
"packageManager": "npm",
"useTaobaoRegistry": false,
"presets": {
"admin-element": {
"useConfigFiles": true,
"plugins": {
"@vue/cli-plugin-babel": {},
"@vue/cli-plugin-eslint": {
"config": "standard",
"lintOn": ["save"]
},
"@vue/cli-plugin-unit-jest": {}
},
"router": true,
"vuex": true,
"configs": {
"vue": {}
}
}
}
}
Run vue create newProject
in terminal, select 'admin-element' preset.