Skip to content

Commit

Permalink
Update vue-cli to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
emiliorizzo committed Jul 23, 2018
1 parent 7a27f4b commit 9019ef9
Show file tree
Hide file tree
Showing 145 changed files with 8,780 additions and 6,843 deletions.
9 changes: 0 additions & 9 deletions .babelrc

This file was deleted.

3 changes: 3 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
> 1%
last 2 versions
not ie <= 8
1 change: 1 addition & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VUE_APP_WS_URL=ws://localhost:3003
2 changes: 2 additions & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VUE_APP_WS_URL=wss://backend.explorer.rsk.co:3003
VUE_APP_STATS_URL=https://stats.rsk.co
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

32 changes: 11 additions & 21 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,17 @@
// https://eslint.org/docs/user-guide/configuring

module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
env: {
browser: true,
node: true
},
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
extends: 'standard',
// required to lint *.vue files
plugins: [
'html'
'extends': [
'plugin:vue/essential',
'@vue/standard'
],
// add your custom rules here
'rules': {
// allow paren-less arrow functions
'arrow-parens': 0,
// allow async-await
'generator-star-spacing': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
},
parserOptions: {
parser: 'babel-eslint'
}
}
}
10 changes: 3 additions & 7 deletions .postcssrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// https://github.com/michael-ciniawsky/postcss-load-config

module.exports = {
"plugins": {
// to edit target browsers: use "browserslist" field in package.json
"postcss-import": {},
"autoprefixer": {}
plugins: {
autoprefixer: {}
}
}
}
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Client for rsk-explorer-api

## Build Setup
## Tasks

``` bash
# install dependencies
Expand All @@ -14,8 +14,6 @@ npm run dev
# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report
```


Expand All @@ -30,11 +28,11 @@ npm run build --report
```

### Settings

The build settings are in src/config/config.json, under 'prod' property.
You can override these settings using enviroment variables

E.g. *to change prod.WS_URL:*
WS_URL: ws backend url
STATS_URL : rsk stats web

E.g. *to change WS_URL:*
``` bash
export WS_URL=wss://backend.rsk.co
```
Expand Down
5 changes: 5 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/app'
]
}
41 changes: 0 additions & 41 deletions build/build.js

This file was deleted.

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

This file was deleted.

Binary file removed build/logo.png
Binary file not shown.
98 changes: 0 additions & 98 deletions build/utils.js

This file was deleted.

23 changes: 0 additions & 23 deletions build/vue-loader.conf.js

This file was deleted.

Loading

0 comments on commit 9019ef9

Please sign in to comment.