Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
first alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
lewyuburi committed Feb 19, 2018
1 parent 9899a65 commit 6f62511
Show file tree
Hide file tree
Showing 5 changed files with 133 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

# Use 4 spaces for the Python files
[*.py]
indent_size = 4
max_line_length = 80

# The JSON files contain newlines inconsistently
[*.json]
insert_final_newline = ignore

# Minified JavaScript files shouldn't be changed
[**.min.js]
indent_style = ignore
insert_final_newline = ignore

# Makefiles always use tabs for indentation
[Makefile]
indent_style = tab

# Batch files use tabs for indentation
[*.bat]
indent_style = tab

[*.md]
trim_trailing_whitespace = false

11 changes: 11 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const { resolve } = require('path')

module.exports = function nuxtBootstrapVue (moduleOptions) {
this.addPlugin({
src: resolve(__dirname, 'veeValidate.js'),
fileName: 'vee-validate.js',
moduleOptions
})
}

module.exports.meta = require('./package.json')
49 changes: 49 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "nuxt-validate",
"version": "0.0.1",
"description": "Simple Nuxt input validation module using vee-validate",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/lewyuburi/nuxt-validate.git"
},
"keywords": [
"nuxt",
"validate",
"nuxt",
"module",
"vee-validate",
"nuxt",
"vee-validate",
"validation",
"vuejs"
],
"author": "Lewis Yuburi",
"license": "MIT",
"bugs": {
"url": "https://github.com/lewyuburi/nuxt-validate/issues"
},
"homepage": "https://github.com/lewyuburi/nuxt-validate#readme",
"dependencies": {
"vee-validate": "^2.0.4"
}
}
4 changes: 4 additions & 0 deletions veeValidate.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Vue from 'vue'
import VeeValidate from 'vee-validate'

Vue.use(VeeValidate)

0 comments on commit 6f62511

Please sign in to comment.