diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..3223b39
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2018 wangxueliang
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..e0dd650
--- /dev/null
+++ b/README.md
@@ -0,0 +1,28 @@
+# vue-cli-plugin-ant-design
+Ant-Design-Vue plugin for `@vue/cli` 3.0.
+
+### Install
+
+First you need to install `@vue/cli` globally (follow the instructions [here](https://cli.vuejs.org/)).
+
+Then create a project and add the ant-design-vue plugin:
+
+```bash
+vue create my-app
+cd my-app
+vue add ant-design
+```
+
+You'll be asked some questions regarding how ant-design-vue is configured in your project. After that, you're good to go.
+
+### Use with vue-cli UI
+
+Skip this part if you've done everything in the `Install` section.
+
+If you prefer managing your project in vue-cli UI (by running `vue ui`), here's how you can add Ant-Design-Vue plugin: go to the Plugins menu, click the upper right `+ Add plugin` button, find `vue-cli-plugin-vue-cli-plugin-ant-design` and install it.
+
+![image](https://user-images.githubusercontent.com/4122593/50544833-0b156280-0c3d-11e9-8c9f-34b6602b66f5.png)
+
+Also there're some configurations for you.
+
+![image](https://user-images.githubusercontent.com/4122593/50544839-4c0d7700-0c3d-11e9-99ba-148ff41720e5.png)
\ No newline at end of file
diff --git a/generator/index.js b/generator/index.js
new file mode 100644
index 0000000..f2caa82
--- /dev/null
+++ b/generator/index.js
@@ -0,0 +1,65 @@
+module.exports = (api, opts, rootOptions) => {
+ const utils = require('./utils')(api)
+
+ api.extendPackage({
+ dependencies: {
+ 'ant-design-vue': '^1.2.4'
+ }
+ })
+
+ api.injectImports(utils.getMain(), `import './plugins/ant-design-vue.js'`)
+
+ api.render({
+ './src/plugins/ant-design-vue.js': './templates/src/plugins/ant-design-vue.js',
+ './src/App.vue': './templates/src/App.vue'
+ })
+
+ if(opts.lang !== 'en_US') {
+ api.render({
+ './src/App.vue': './templates/src/customLangApp.vue'
+ })
+ } else {
+ api.render({
+ './src/App.vue': './templates/src/App.vue'
+ })
+ }
+
+ if (opts.import === 'partial') {
+ api.extendPackage({
+ devDependencies: {
+ 'babel-plugin-import': '^1.11.0'
+ }
+ })
+ api.extendPackage({
+ devDependencies: {
+ 'less-loader': '^4.1.0',
+ 'less': '^2.7.3'
+ }
+ })
+ } else if (opts.customTheme) {
+ api.render({
+ './src/antd-variables.less': './templates/src/antd-variables.less'
+ })
+ api.extendPackage({
+ devDependencies: {
+ 'less-loader': '^4.1.0',
+ 'less': '^2.7.3'
+ }
+ })
+ }
+
+ api.onCreateComplete(() => {
+ if (opts.import === 'partial') {
+ utils.updateBabelConfig(cfg => {
+ const pluginComponent = ['import', {
+ 'libraryName': 'ant-design-vue',
+ 'libraryDirectory': 'es',
+ 'style': true
+ }]
+ cfg.plugins = cfg.plugins || []
+ cfg.plugins.push(pluginComponent)
+ return cfg
+ })
+ }
+ })
+}
diff --git a/generator/templates/src/App.vue b/generator/templates/src/App.vue
new file mode 100644
index 0000000..1ce75c2
--- /dev/null
+++ b/generator/templates/src/App.vue
@@ -0,0 +1,36 @@
+
+
+
+
+
+ If Ant-Design-Vue is successfully added to this project, you'll see an
+
+ below
+
+ Primary
+
+
+
+
+
+
+
+
diff --git a/generator/templates/src/antd-variables.less b/generator/templates/src/antd-variables.less
new file mode 100644
index 0000000..0bf2c1f
--- /dev/null
+++ b/generator/templates/src/antd-variables.less
@@ -0,0 +1,9 @@
+/*
+Write your variables here. All available variables can be
+found in https://github.com/vueComponent/ant-design-vue/blob/master/components/style/themes/default.less.
+*/
+
+@import '~ant-design-vue/dist/antd.less';
+
+// Here are the variables to cover, such as:
+@primary-color: #30A679;
diff --git a/generator/templates/src/customLangApp.vue b/generator/templates/src/customLangApp.vue
new file mode 100644
index 0000000..36a8b29
--- /dev/null
+++ b/generator/templates/src/customLangApp.vue
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+ If Ant-Design-Vue is successfully added to this project, you'll see an
+
+
+ below
+