From 0d0a5d85d6ef876f1b6d4f1186f4bc156cb01d7d Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Fri, 27 Jul 2018 15:24:36 +0200 Subject: [PATCH] Forgot to add VSwitch Vuetify component --- README.md | 8 ++++++++ package.json | 3 ++- src/vuetify.js | 2 ++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 099179c..2286c19 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,14 @@ adapt the behavior to your needs. You should also have a look at the build variables under the `config/` subdirectory. +#### Notes + +We are using [A la carte](https://vuetifyjs.com/en/guides/a-la-carte) Vuetify +components to reduce the size of the build. Check that any extra components +you might use is indeed included in `src/vuetify.js` file. The `yarn +list-vuetify-components` command might be useful to help you determine which +components are used across the code. + ### Server part diff --git a/package.json b/package.json index 9a16f55..3809ca4 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "lint": "eslint --ext .js,.vue src", "build": "node build/build.js", "push-locales": "json2po -P -i src/i18n/en.json -t src/i18n/en.json -o po/cyclassist.pot && zanata push", - "pull-locales": "zanata pull && ./.po2json.sh" + "pull-locales": "zanata pull && ./.po2json.sh", + "list-vuetify-components": "ack ']*\\).*/\\1/' | sort | uniq" }, "dependencies": { "es6-promise": "^4.2.4", diff --git a/src/vuetify.js b/src/vuetify.js index 05a2436..616c7d3 100644 --- a/src/vuetify.js +++ b/src/vuetify.js @@ -14,6 +14,7 @@ import VList from 'vuetify/es5/components/VList'; import VMenu from 'vuetify/es5/components/VMenu'; import VProgressLinear from 'vuetify/es5/components/VProgressLinear'; import VSelect from 'vuetify/es5/components/VSelect'; +import VSwitch from 'vuetify/es5/components/VSwitch'; import VTextField from 'vuetify/es5/components/VTextField'; import VToolbar from 'vuetify/es5/components/VToolbar'; @@ -33,6 +34,7 @@ Vue.use(Vuetify, { VMenu, VProgressLinear, VSelect, + VSwitch, VTextField, VToolbar, },