diff --git a/dev/Dev.vue b/dev/Dev.vue
new file mode 100644
index 0000000..c6d69c4
--- /dev/null
+++ b/dev/Dev.vue
@@ -0,0 +1,130 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{option.label}}
+
+
+ {{option.label}} ({{option.value}})
+
+
+
+
+ {{option.label}}
+
+
+ {{option.label}}
+
+
+
+
+ {{ props.option.label }} ({{ props.option.value }})
+
+
+
+
+
+
+
+
+
+ {{ option.title }}
+ {{ `${option.author.firstName} ${option.author.lastName}` }}
+
+
+
+
+
+
+
+
diff --git a/dev/dev.html b/dev/dev.html
deleted file mode 100644
index 165c863..0000000
--- a/dev/dev.html
+++ /dev/null
@@ -1,83 +0,0 @@
-
-
-
-
-
- Vue Select Dev
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{option.label}}
-
-
- {{option.label}} ({{option.value}})
-
-
-
-
- {{option.label}}
-
-
- {{option.label}}
-
-
-
-
- {{ props.option.label }} ({{ props.option.value }})
-
-
-
-
-
-
-
-
-
- {{ option.title }}
- {{ `${option.author.firstName} ${option.author.lastName}` }}
-
-
-
-
-
-
diff --git a/dev/dev.js b/dev/dev.js
index 83e4580..658e484 100644
--- a/dev/dev.js
+++ b/dev/dev.js
@@ -1,50 +1,8 @@
-import Vue from 'vue'
-import Fuse from 'fuse.js'
-import debounce from 'lodash/debounce'
-import resource from 'vue-resource'
-import vSelect from '../src/components/Select.vue'
-import countries from './data/countryCodes'
-import fuseSearchOptions from './data/books'
+import Vue from "vue";
+import Dev from "./Dev.vue";
-Vue.use(resource)
-Vue.component('v-select', vSelect)
+Vue.config.productionTip = false;
-/* eslint-disable no-new */
new Vue({
- el: '#app',
- data: {
- placeholder: "placeholder",
- value: null,
- options: countries,
- ajaxRes: [],
- people: [],
- fuseSearchOptions
- },
- methods: {
- search(search, loading) {
- loading(true);
- this.getRepositories(search, loading, this)
- },
- searchPeople(search, loading) {
- loading(true)
- this.getPeople(loading, this)
- },
- getPeople: debounce((loading, vm) => {
- vm.$http.get(`https://reqres.in/api/users?per_page=10`).then(res => {
- vm.people = res.data.data
- loading(false)
- })
- }, 250),
- getRepositories: debounce((search, loading, vm) => {
- vm.$http.get(`https://api.github.com/search/repositories?q=${search}`).then(res => {
- vm.ajaxRes = res.data.items;
- loading(false)
- })
- }, 250),
- fuseSearch(options, search) {
- return new Fuse(options, {
- keys: ['title', 'author.firstName', 'author.lastName'],
- }).search(search);
- }
- }
-});
\ No newline at end of file
+ render: h => h(Dev)
+}).$mount("#app");
diff --git a/package.json b/package.json
index 6c35976..d948fa3 100644
--- a/package.json
+++ b/package.json
@@ -3,8 +3,8 @@
"version": "0.1.0",
"private": true,
"scripts": {
- "serve": "vue-cli-service serve",
- "build": "vue-cli-service build",
+ "serve": "vue-cli-service serve ./dev/dev.js",
+ "build": "vue-cli-service build --target lib ./src/index.js",
"lint": "vue-cli-service lint",
"test:unit": "vue-cli-service test:unit"
},