Skip to content

Commit 8651ec5

Browse files
committed
Vue CLI v3
### Todo: [ ] `@Ionic/core` instead of unpkg
1 parent 128977f commit 8651ec5

Some content is hidden

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

71 files changed

+12415
-9635
lines changed

.babelrc

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

.browserslistrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> 1%
2+
last 2 versions
3+
not ie <= 8

.eslintrc.js

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,17 @@
11
module.exports = {
2+
root: true,
23
env: {
3-
browser: true,
4-
node: true,
5-
es6: true,
4+
node: true
65
},
7-
extends: [
8-
'plugin:vue/recommended',
9-
'plugin:promise/recommended',
10-
'prettier',
11-
'eslint:recommended',
6+
'extends': [
7+
'plugin:vue/essential',
8+
'@vue/prettier'
129
],
13-
plugins: ['prettier', 'promise'],
14-
parserOptions: {
15-
sourceType: 'module',
16-
ecmaVersion: 2017,
17-
},
1810
rules: {
19-
'prettier/prettier': 'error',
20-
'no-console': 0,
21-
indent: ['error', 2],
22-
'linebreak-style': ['error', 'unix'],
23-
quotes: ['error', 'single'],
24-
semi: ['error', 'never'],
11+
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
12+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
2513
},
26-
}
14+
parserOptions: {
15+
parser: 'babel-eslint'
16+
}
17+
}

.gitignore

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
.*
2-
~*
1+
.DS_Store
2+
node_modules
3+
/dist
34

4-
dist/
5-
node_modules/
5+
# local env files
6+
.env.local
7+
.env.*.local
68

7-
ios/
8-
android/
9-
electron/
10-
11-
# ignore log files
12-
*.log
9+
# Log files
1310
npm-debug.log*
1411
yarn-debug.log*
1512
yarn-error.log*
1613

17-
!.gitignore
18-
!.editorconfig
19-
!.eslintrc.js
20-
!.prettierrc
21-
!.circleci
14+
# Editor directories and files
15+
.idea
16+
.vscode
17+
*.suo
18+
*.ntvs*
19+
*.njsproj
20+
*.sln
21+
*.sw*

.postcssrc.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
// https://github.com/michael-ciniawsky/postcss-load-config
2-
31
module.exports = {
4-
"plugins": {
5-
"postcss-import": {},
6-
"postcss-url": {},
7-
// to edit target browsers: use "browserslist" field in package.json
8-
"autoprefixer": {}
2+
plugins: {
3+
autoprefixer: {}
94
}
10-
}
5+
}

babel.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: ['@vue/app'],
3+
}

capacitor.config.json

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

config/dev.env.js

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

config/index.js

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

config/prod.env.js

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

index.html

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

jest.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
moduleFileExtensions: ['js', 'jsx', 'json', 'vue'],
3+
transform: {
4+
'^.+\\.vue$': 'vue-jest',
5+
'.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
6+
'^.+\\.jsx?$': 'babel-jest',
7+
},
8+
moduleNameMapper: {
9+
'^@/(.*)$': '<rootDir>/src/$1',
10+
},
11+
snapshotSerializers: ['jest-serializer-vue'],
12+
testMatch: ['**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'],
13+
testURL: 'http://localhost/',
14+
}

0 commit comments

Comments
 (0)