Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/yugasun/auto-detect-component
- Owner: yugasun
- License: mit
- Created: 2019-01-15T08:55:00.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-10T10:16:12.000Z (almost 6 years ago)
- Last Synced: 2024-10-02T09:08:24.048Z (3 months ago)
- Topics: automation, component-injection
- Language: JavaScript
- Homepage:
- Size: 81.1 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# auto-detect-component
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)