Skip to content

Commit

Permalink
refactor: vue-cli 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexays committed Jul 14, 2018
1 parent acc2c4d commit e5f4695
Show file tree
Hide file tree
Showing 92 changed files with 363 additions and 844 deletions.
4 changes: 1 addition & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
/build/
/config/
/dist/
/*.js
babel.config.js
43 changes: 11 additions & 32 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,41 +1,23 @@
// https://eslint.org/docs/user-guide/configuring

module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module'
env: {
node: true
},
globals: {
browser: true,
Cards: true,
browserName: true,
},
env: {
browser: true,
es6: true,
},
extends: [
'airbnb-base',
'plugin:vue/recommended'
],
// required to lint *.vue files
plugins: [
'vue'
'extends': [
'plugin:vue/recommended',
'@vue/airbnb'
],
// check if imports actually resolve
settings: {
'import/resolver': {
webpack: {
config: 'build/webpack.base.conf.js'
}
}
},
// add your custom rules here
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'vue/max-attributes-per-line': 0,
'no-underscore-dangle': 0,
'no-bitwise': 0,
'no-underscore-dangle': 0,
// don't require .vue extension when importing
'import/extensions': ['error', 'always', {
js: 'never',
Expand All @@ -52,11 +34,8 @@ module.exports = {
'f'
]
}],
// allow optionalDependencies
'import/no-extraneous-dependencies': ['error', {
optionalDependencies: ['test/unit/index.js']
}],
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
},
parserOptions: {
parser: 'babel-eslint'
}
}
11 changes: 3 additions & 8 deletions .postcssrc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
// https://github.com/michael-ciniawsky/postcss-load-config

module.exports = {
"plugins": {
"postcss-import": {},
"postcss-url": {},
// to edit target browsers: use "browserslist" field in package.json
"autoprefixer": {}
plugins: {
autoprefixer: {}
}
}
}
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
language: node_js
node_js:
- "10"
- "9"
- "8"

install:
- npm install
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@

## Requirement

- [Chrome](https://www.google.com/chrome/) >= 54.0<br />
- [Node](https://nodejs.org/en/) >= 8
- [Chrome](https://www.google.com/chrome/) >= 54.0
- [Firefox](https://www.mozilla.org/firefox/) >= 54.0

## Build Setup
Expand Down
26 changes: 18 additions & 8 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
module.exports = {
presets: [
["@babel/preset-env", {
"modules": false
}],
["@babel/preset-stage-2", {
decoratorsLegacy: true
}]
[
'@vue/app',
{
useBuiltIns: 'entry',
},
],
],
plugins: ["transform-vue-jsx", "@babel/plugin-transform-runtime"],
}
plugins: [
[
'transform-imports',
{
vuetify: {
transform: 'vuetify/es5/components/${member}',
preventFullImport: true,
},
},
],
],
};
41 changes: 0 additions & 41 deletions build/build.js

This file was deleted.

42 changes: 0 additions & 42 deletions build/cards.js

This file was deleted.

54 changes: 0 additions & 54 deletions build/check-versions.js

This file was deleted.

51 changes: 0 additions & 51 deletions build/remove-evals.js

This file was deleted.

Loading

0 comments on commit e5f4695

Please sign in to comment.