diff --git a/.bablerc b/.bablerc new file mode 100644 index 0000000..41f3bd5 --- /dev/null +++ b/.bablerc @@ -0,0 +1,14 @@ +{ + "presets": [ + [ + "es2015", + { + "modules": false + } + ], + "stage-2" + ], + "ignore": [ + "node_modules/*" + ] +} diff --git a/.eslintrc.js b/.eslintrc.js index 7415487..20fef22 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,5 +1,6 @@ module.exports = { - root: true, //sets this file as the parent scope for the rules + root: true, //sets this file as the parent scope for the rules, + parser: 'babel-eslint', parserOptions:{ sourceType: 'module' }, diff --git a/build/webpack.base.config.js b/build/webpack.base.config.js index 0218f9d..253e9bd 100644 --- a/build/webpack.base.config.js +++ b/build/webpack.base.config.js @@ -15,19 +15,29 @@ //We do not want to use this in production because it //instead we whatnt o make sure that all components are defined in *.vuejs //files, because they are pre-compiled - resolve: { // What the hell does resolve do? - alias:{ - vue: 'vue/dist/vue.js' - } - }, + // this is only needed if you are not using the vue-template-compiler + //resolve: { // What the hell does resolve do? + // alias:{ + // vue: 'vue/dist/vue.js' + // } + //}, module: { rules: [ { enforce: 'pre', //check source files before they are loader by other loaders - test: /(\.js$)/, + test: /(\.js$)|(\.vue$)/, //linting for both js and vue files loader: 'eslint-loader', exclude: /node_modules/ + }, + { + test: /\.vue$/, + loader: 'vue-loader' + }, + { + test: /\.js$/, // This rule applies after the .vue files are transpiled to .js files through the vue loader + loader: 'babel-loader', + exclude: /node_modules/ } ] } diff --git a/index.html b/index.html index f0b30a8..16e6d6a 100644 --- a/index.html +++ b/index.html @@ -6,9 +6,7 @@
-