Skip to content

Commit

Permalink
feat: update dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
yugasun committed Mar 29, 2019
1 parent 451c93a commit 61f4e81
Show file tree
Hide file tree
Showing 10 changed files with 1,049 additions and 419 deletions.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@ indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.{js,jsx,ts,tsx,vue}]
indent_style = space
indent_size = 2
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 100
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@

src/views/index/dashboard.vue
10 changes: 7 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
module.exports = {
root: true,

env: {
node: true,
},

extends: [
'plugin:vue/essential',
'@vue/airbnb',
'@vue/typescript',
],

rules: {
'no-param-reassign': 0,
'no-console': 0,
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
},

parserOptions: {
parser: 'typescript-eslint-parser',
},
parser: '@typescript-eslint/parser'
}
};
15 changes: 3 additions & 12 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
module.exports = {
presets: ['@vue/app'],
// plugins: [
// [
// 'component',
// [
// {
// libraryName: 'element-ui',
// styleLibraryName: 'theme-chalk',
// },
// ],
// ],
// ],
presets: [
'@vue/app',
],
};
44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "x-chart",
"version": "0.2.1",
"private": true,
"description": "Draggable & resizable data visualization dashboard",
"author": "yugasun <[email protected]>",
"private": true,
"scripts": {
"dev": "vue-cli-service serve",
"build": "vue-cli-service build",
"build:git-page": "cross-env GIT_PAGE=true vue-cli-service build",
"lint": "vue-cli-service lint",
"test": "npm run lint",
"lint": "vue-cli-service lint",
"deploy": "npm run build:git-page && gh-pages -d dist --remote origin",
"build:git-page": "cross-env GIT_PAGE=true vue-cli-service build",
"docker:build": "docker build -t x-chart .",
"docker:run": "docker run -itd -p 8080:80 --name=x-chart x-chart",
"docker:exec": "docker exec -it x-chart bash"
"docker:exec": "docker exec -it x-chart bash",
"docker:run": "docker run -itd -p 8080:80 --name=x-chart x-chart"
},
"dependencies": {
"@types/echarts": "^4.1.3",
Expand All @@ -34,43 +34,43 @@
"vuex": "^3.0.1"
},
"devDependencies": {
"@types/node": "^10.12.12",
"@vue/cli-plugin-babel": "^3.2.0",
"@vue/cli-plugin-eslint": "^3.2.0",
"@vue/cli-plugin-typescript": "^3.2.0",
"@vue/cli-service": "^3.2.0",
"@types/node": "^11.12.1",
"@vue/cli-plugin-babel": "^3.5.0",
"@vue/cli-plugin-eslint": "^3.5.0",
"@vue/cli-plugin-typescript": "^3.5.0",
"@vue/cli-service": "^3.5.0",
"@vue/eslint-config-airbnb": "^4.0.0",
"@vue/eslint-config-typescript": "^3.2.0",
"@vue/eslint-config-typescript": "^4.0.0",
"babel-eslint": "^10.0.1",
"babel-plugin-component": "^1.1.1",
"cross-env": "^5.2.0",
"eslint": "^5.8.0",
"eslint-plugin-vue": "^5.0.0-0",
"eslint-plugin-vue": "^5.0.0",
"gh-pages": "^2.0.1",
"node-sass": "^4.9.0",
"sass-loader": "^7.0.1",
"typescript": "^3.0.0",
"typescript": "^3.2.1",
"uglifyjs-webpack-plugin": "^2.0.1",
"vue-template-compiler": "^2.5.17"
},
"bugs": {
"url": "https://github.com/yugasun/x-chart/issues"
},
"engines": {
"node": ">= 8.0.0",
"npm": ">= 5.0.0"
},
"main": ".eslintrc.js",
"repository": {
"type": "git",
"url": "git+https://github.com/yugasun/x-chart.git"
},
"homepage": "https://github.com/yugasun/x-chart#readme",
"keywords": [
"data-visualization",
"echarts",
"vuejs",
"vue-grid-layout"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/yugasun/x-chart/issues"
},
"homepage": "https://github.com/yugasun/x-chart#readme"
"main": ".eslintrc.js",
"repository": {
"type": "git",
"url": "git+https://github.com/yugasun/x-chart.git"
}
}
1 change: 1 addition & 0 deletions src/components/mixins/chart-mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export default class ChartMixin extends Vue {
}

handleChartClick(param: any) {
// eslint-disable-next-line no-console
console.log(this, param);
}

Expand Down
1 change: 0 additions & 1 deletion src/errorLog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ Vue.config.errorHandler = (err: any, vm: Vue, info: string) => {
info,
url: window.location.href,
});
console.error(err, info);
});
};
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"allowSyntheticDefaultImports": true,
"sourceMap": true,
"baseUrl": ".",
"types": ["node"],
"types": ["webpack-env"],
"paths": {
"@/*": ["src/*"]
},
Expand Down
3 changes: 2 additions & 1 deletion vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const prod = process.env.NODE_ENV === 'production';
const buildForGitPage = process.env.GIT_PAGE;

module.exports = {
baseUrl: buildForGitPage ? '/x-chart/' : '/',
parallel: true,
publicPath: buildForGitPage ? '/x-chart/' : '/',
runtimeCompiler: true,
configureWebpack: {
optimization: {
Expand Down
Loading

0 comments on commit 61f4e81

Please sign in to comment.