diff --git a/nuxt.config.js b/nuxt.config.js index e4924fa..dda49b0 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -38,6 +38,7 @@ module.exports = { ** Plugins to load before mounting the App */ plugins: [ + { src: '~/plugins/Vuelidate' } ], /* diff --git a/package.json b/package.json index f03a3ef..72110af 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,8 @@ "cross-env": "^5.2.0", "nuxt": "^2.0.0", "nuxt-buefy": "^0.2.1", - "nuxt-sass-resources-loader": "^2.0.5" + "nuxt-sass-resources-loader": "^2.0.5", + "vuelidate": "^0.7.4" }, "devDependencies": { "babel-eslint": "^8.2.1", diff --git a/plugins/Vuelidate.js b/plugins/Vuelidate.js new file mode 100644 index 0000000..169b330 --- /dev/null +++ b/plugins/Vuelidate.js @@ -0,0 +1,3 @@ +import Vue from 'vue' +import Vuelidate from 'vuelidate' +Vue.use(Vuelidate) diff --git a/yarn.lock b/yarn.lock index eb7e374..2af0976 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8077,6 +8077,11 @@ vue@^2.5.17: resolved "https://registry.yarnpkg.com/vue/-/vue-2.5.21.tgz#3d33dcd03bb813912ce894a8303ab553699c4a85" integrity sha512-Aejvyyfhn0zjVeLvXd70h4hrE4zZDx1wfZqia6ekkobLmUZ+vNFQer53B4fu0EjWBSiqApxPejzkO1Znt3joxQ== +vuelidate@^0.7.4: + version "0.7.4" + resolved "https://registry.yarnpkg.com/vuelidate/-/vuelidate-0.7.4.tgz#5a0e54be09ac0192f1aa3387d74b92e0945bf8aa" + integrity sha512-QHZWYOL325Zo+2K7VBNEJTZ496Kd8Z31p85aQJFldKudUUGBmgw4zu4ghl4CyqPwjRCmqZ9lDdx4FSdMnu4fGg== + vuex@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/vuex/-/vuex-3.0.1.tgz#e761352ebe0af537d4bb755a9b9dc4be3df7efd2"