Skip to content

Commit 86b4f6d

Browse files
author
w-xuefeng
committed
feat: restructure by vue-cli
1 parent da9003d commit 86b4f6d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+12787
-1399
lines changed

.babelrc

Lines changed: 0 additions & 18 deletions
This file was deleted.

.browserslistrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
> 1%
2+
last 2 versions

.editorconfig

Lines changed: 0 additions & 9 deletions
This file was deleted.

.eslintignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

.eslintrc.js

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,14 @@
1-
// https://eslint.org/docs/user-guide/configuring
2-
31
module.exports = {
42
root: true,
5-
parserOptions: {
6-
parser: 'babel-eslint'
7-
},
83
env: {
9-
browser: true,
4+
node: true
105
},
11-
extends: [
12-
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
13-
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
14-
'plugin:vue/essential',
15-
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
16-
'standard'
17-
],
18-
// required to lint *.vue files
19-
plugins: [
20-
'vue'
21-
],
22-
// add your custom rules here
6+
extends: ["plugin:vue/essential", "@vue/prettier"],
237
rules: {
24-
// allow async-await
25-
'generator-star-spacing': 'off',
26-
// allow debugger during development
27-
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
8+
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
9+
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
2810
},
29-
"globals": {
30-
"api": true,
31-
"window.api": true,
32-
"apiready": true,
33-
"window.apiready": true,
11+
parserOptions: {
12+
parser: "babel-eslint"
3413
}
35-
}
14+
};

.gitignore

Lines changed: 9 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
.DS_Store
2-
node_modules/
3-
/dist/
4-
/widget/
2+
node_modules
3+
/dist
4+
5+
# local env files
6+
.env.local
7+
.env.*.local
8+
9+
# Log files
510
npm-debug.log*
611
yarn-debug.log*
712
yarn-error.log*
8-
/test/unit/coverage/
9-
/test/e2e/reports/
10-
selenium-debug.log
11-
package-lock.json
1213

1314
# Editor directories and files
1415
.idea
@@ -17,72 +18,4 @@ package-lock.json
1718
*.ntvs*
1819
*.njsproj
1920
*.sln
20-
21-
# Logs
22-
logs
23-
*.log
24-
25-
# Runtime data
26-
pids
27-
*.pid
28-
*.seed
29-
*.pid.lock
30-
31-
# Directory for instrumented libs generated by jscoverage/JSCover
32-
lib-cov
33-
34-
# Coverage directory used by tools like istanbul
35-
coverage/
36-
37-
# nyc test coverage
38-
.nyc_output
39-
40-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
41-
.grunt
42-
43-
# node-waf configuration
44-
.lock-wscript
45-
46-
# Dependency directory
47-
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
48-
node_modules/
49-
jspm_packages
50-
51-
# Compiled binary addons (http://nodejs.org/api/addons.html)
52-
build/Release
53-
54-
# Optional npm cache directory
55-
.npm
56-
57-
# Optional REPL history
58-
.node_repl_history
59-
60-
# IDE config
61-
/.idea
62-
63-
# output
64-
output/
65-
output.tar.gz
66-
67-
dist/
68-
#appnpm
69-
app/
70-
runtime/
71-
src/common/config/db.js
72-
# OS generated files #
73-
######################
74-
.DS_Store
75-
.DS_Store?
76-
._*
77-
.Spotlight-V100
78-
.Trashes
79-
Icon?
80-
ehthumbs.db
81-
Thumbs.db
82-
db.js
83-
npm-debug
84-
www/static/uploads
85-
86-
#vscode
87-
/.vscode
88-
.svn
21+
*.sw?

.prettierignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
node_modules/
2+
**/*.spec.*
3+
**/assets/
4+
*.html
5+
build/
6+
config/
7+
dist/
8+
test/
9+
static/
10+
package.json

.prettierrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"arrowParens": "avoid",
5+
"bracketSpacing": true,
6+
"requirePragma": false,
7+
"jsxBracketSameLine": true,
8+
"proseWrap": "preserve",
9+
"tabWidth": 2
10+
}

.syncignore

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,16 @@
1-
{**/*.js.map,**/node_modules/**,src/**,package.json,package-lock.json,**/build/**,**/config/**,**/static/**,**/test/**,**/widget/**,**/dist/**,postcss.config.js,README.md}
1+
2+
{
3+
**/*.js.map,
4+
**/node_modules/**,
5+
src/**,
6+
package.json,
7+
package-lock.json,
8+
**/build/**,
9+
**/config/**,
10+
**/static/**,
11+
**/test/**,
12+
**/widget/**,
13+
**/dist/**,
14+
postcss.config.js,
15+
README.md
16+
}

.travis.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)