Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yugasun/auto-detect-component

Creating UI components plugin for your project automatically
https://github.com/yugasun/auto-detect-component

automation component-injection

Last synced: about 2 months ago
JSON representation

Creating UI components plugin for your project automatically

Awesome Lists containing this project

README

        

# auto-detect-component

Downloads
Version

Detect UI components used in your project automatically.

## Usage

```shell
# 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](https://vuejs.org/v2/guide/plugins.html):

```js
import Vue from 'vue';
import UIPlugin from './plugin/ui-plugin';

Vue.use(UIPlugin);
```

## TODO

[ ] Unit test.

## Support UI Toolkit

It supports two UI toolkit for Vue:

* [element-ui](https://github.com/ElemeFE/element)
* [ant-design-vue](https://github.com/vueComponent/ant-design-vue)

## License

[MIT](./LICENSE)