/** Loading styles */
import './styles/main.scss';

/** Loading core dependencies, external dependencies and polyfills */
import 'core-js/fn/promise';
import 'jquery';

/**
 * import local dependencies - Provided by Sage 9.0 (https://github.com/roots/sage)
 */
import Router from './scripts/util/Router';
import common from './scripts/routes/common';

import home from './scripts/routes/home';
import aboutUs from './scripts/routes/about';

const routes = new Router({
    common,
    home,
    aboutUs,
});

/** Load Events */
$(document).ready(() => routes.loadEvents());

/** Loading Vue and initializing to window object */
import Vue from 'vue';
import App from './scripts/Vue/App.vue';

new Vue({
    el: '#app',
    render: h => h(App),
});