Skip to content

Commit

Permalink
Use parcel bundler instead of webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
BenRichter committed Mar 29, 2018
1 parent 4cfbfe9 commit 46bb10b
Show file tree
Hide file tree
Showing 6 changed files with 2,206 additions and 175 deletions.
3 changes: 1 addition & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"presets": [
["es2015", { "modules": false }],
"stage-2"
"env"
],
"plugins": ["transform-runtime"],
"comments": false,
Expand Down
40 changes: 4 additions & 36 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,40 +1,8 @@
// http://eslint.org/docs/user-guide/configuring

module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
env: {
browser: true,
},
extends: 'airbnb-base',
// required to lint *.vue files
plugins: [
'html'
],
// check if imports actually resolve
'settings': {
'import/resolver': {
'webpack': {
'config': 'build/webpack.base.conf.js'
}
}
},
// add your custom rules here
'rules': {
// don't require .vue extension when importing
'import/extensions': ['error', 'always', {
'js': 'never',
'vue': 'never'
}],
// allow optionalDependencies
'import/no-extraneous-dependencies': ['error', {
'optionalDependencies': ['test/unit/index.js']
}],
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
"linebreak-style": 0
}
extends: [
'eslint:recommended',
'plugin:vue/essential'
]
}
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
<body>
<div id="app"></div>
<!-- built files will be auto injected -->
<script src="./src/main.js"></script>
</body>
</html>
Loading

0 comments on commit 46bb10b

Please sign in to comment.