-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feature) Improve nuxt compatibilty (#4)
- Loading branch information
1 parent
9e9d855
commit 7c3aeac
Showing
5 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
.DS_Store | ||
node_modules | ||
/dist | ||
.nuxt | ||
|
||
# local env files | ||
.env.local | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const { resolve } = require('path') | ||
|
||
module.exports = function VueInputUi () { | ||
this.addPlugin({ | ||
ssr: false, | ||
src: resolve(__dirname, 'plugin.js'), | ||
fileName: 'vue-input-ui.js' | ||
}) | ||
} | ||
|
||
module.exports.meta = require(__dirname, './../package.json') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import Vue from 'vue' | ||
import VueInputUi from 'vue-input-ui' | ||
import 'vue-input-ui/dist/vue-input-ui.css' | ||
|
||
Vue.component('VueInputUi', VueInputUi) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
{ | ||
"name": "vue-input-ui", | ||
"version": "0.2.10", | ||
"version": "0.2.11", | ||
"description": "A beautiful input made with Vue JS", | ||
"author": "Louis Mazel <[email protected]>", | ||
"scripts": { | ||
"serve": "vue-cli-service serve --mode development", | ||
"serve:nuxt": "nuxt src", | ||
"build": "npm run build:lib && npm run build:docs", | ||
"test": "vue-cli-service test:unit /test/specs", | ||
"lint": "vue-cli-service lint", | ||
|
@@ -18,7 +19,8 @@ | |
"ui": "vue ui" | ||
}, | ||
"files": [ | ||
"dist/" | ||
"dist/", | ||
"nuxt/" | ||
], | ||
"dependencies": { | ||
"vue": "^2.5.21" | ||
|
@@ -31,7 +33,10 @@ | |
"eslint": "^5.8.0", | ||
"eslint-plugin-vue": "^5.0.0", | ||
"node-sass": "^4.12.0", | ||
"nuxt": "^2.9.2", | ||
"path": "^0.12.7", | ||
"sass-loader": "^7.1.0", | ||
"vue-server-renderer": "^2.6.9", | ||
"vue-template-compiler": "^2.5.21" | ||
}, | ||
"postcss": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<template> | ||
<div> | ||
<h1> | ||
Component: | ||
</h1> | ||
<VueInputUi | ||
id="input1" | ||
v-model="value" | ||
clearable | ||
/> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import VueInputUi from './../VueInputUi' | ||
export default { | ||
components: { | ||
VueInputUi | ||
}, | ||
data () { | ||
return { | ||
value: null | ||
} | ||
} | ||
} | ||
</script> |