Detect UI components used in your project automatically.
# install
npm install auto-detect-component -g
# get command help
adc --help
# run command
# demo is the project directory you need to detect
adc -d demo -u 'element-ui' -o plugin
Then use the created plugin file as Vue plugin:
import Vue from 'vue';
import UIPlugin from './plugin/ui-plugin';
Vue.use(UIPlugin);
[ ] Unit test.
It supports two UI toolkit for Vue: