@agorize/gommette
Advanced tools
Comparing version 1.6.0 to 1.7.0
import fs from 'fs' | ||
import path from 'path' | ||
import vue from 'rollup-plugin-vue' | ||
import commonjs from 'rollup-plugin-commonjs' | ||
import resolve from 'rollup-plugin-node-resolve' | ||
@@ -25,2 +26,3 @@ import autoprefixer from 'autoprefixer' | ||
plugins: [ | ||
commonjs(), | ||
vue(), | ||
@@ -27,0 +29,0 @@ builtins(), |
import Vue from 'vue' | ||
import * as uiv from 'uiv' | ||
import VeeValidate from 'vee-validate' | ||
import enValidation from 'vee-validate/dist/locale/en' | ||
import frValidation from 'vee-validate/dist/locale/fr' | ||
@@ -8,4 +10,9 @@ Vue.component('GoFieldInput', () => import('./src/components/GoFields/GoFieldInput.vue')) | ||
Vue.use(VeeValidate) | ||
Vue.use(uiv) | ||
Vue.use(VeeValidate, { | ||
locale: 'en', | ||
dictionary: { | ||
en: enValidation, | ||
fr: frValidation | ||
} | ||
}) |
@@ -71,3 +71,3 @@ { | ||
}, | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"author": "", | ||
@@ -128,2 +128,3 @@ "keywords": [], | ||
"rollup-plugin-vue": "4.3.2", | ||
"rollup-plugin-commonjs": "9.3.4", | ||
"sass-loader": "7.1.0", | ||
@@ -130,0 +131,0 @@ "sass-resources-loader": "2.0.0", |
import * as components from './components' | ||
import './styles/index.scss' | ||
import * as uiv from 'uiv' | ||
import VeeValidate from 'vee-validate' | ||
import enValidation from 'vee-validate/dist/locale/en' | ||
import frValidation from 'vee-validate/dist/locale/fr' | ||
const install = (Vue, opts = {}) => { | ||
Vue.use(VeeValidate) | ||
Vue.use(uiv) | ||
Vue.use(VeeValidate, { | ||
locale: opts.defaultLocale, | ||
dictionary: { | ||
en: enValidation, | ||
fr: frValidation, | ||
} | ||
}) | ||
@@ -11,0 +18,0 @@ Object.keys(components).forEach(key => { |
@@ -39,3 +39,3 @@ import { createLocalVue, shallowMount } from '@vue/test-utils' | ||
const valueExpected = 'my name' | ||
const input = wrapper.find({ref: 'input'}) | ||
const input = wrapper.find({ ref: 'input' }) | ||
@@ -42,0 +42,0 @@ input.setValue(valueExpected) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
10250399
60717
53