Skip to content

Commit

Permalink
Manage vue plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
dmstern committed Aug 26, 2018
1 parent f842dbb commit 9c8c0e5
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
7 changes: 1 addition & 6 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
import '@babel/polyfill';
import '@mdi/font/css/materialdesignicons.css';
import Vue from 'vue';
import './plugins/vuetify';
import './plugins/';
import App from './App.vue';
import router from '@/router';
import VueSimpleSVG from 'vue-simple-svg';
import VueHighlightJS from 'vue-highlightjs';
import 'highlight.js/styles/atom-one-dark.css';

Vue.config.productionTip = false;
Vue.use(VueSimpleSVG);
Vue.use(VueHighlightJS);

new Vue({
router,
Expand Down
3 changes: 3 additions & 0 deletions src/plugins/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import './vue-highlight';
import './vue-simple-svg';
import './vuetify';
6 changes: 6 additions & 0 deletions src/plugins/vue-highlight.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import Vue from 'vue'
import VueHighlightJS from 'vue-highlightjs';

import 'highlight.js/styles/atom-one-dark.css';

Vue.use(VueHighlightJS);
4 changes: 4 additions & 0 deletions src/plugins/vue-simple-svg.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Vue from 'vue'
import VueSimpleSVG from 'vue-simple-svg';

Vue.use(VueSimpleSVG);
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"src/**/*.tsx",
"src/**/*.vue",
"tests/**/*.ts",
"tests/**/*.tsx"
"tests/**/*.tsx", "src/plugins/index.js",
],
"exclude": [
"node_modules"
Expand Down

0 comments on commit 9c8c0e5

Please sign in to comment.