Skip to content

Commit 32dd67c

Browse files
authored
Vue 3 migration (#15)
1 parent 7210f91 commit 32dd67c

263 files changed

Lines changed: 31338 additions & 60473 deletions

File tree

Some content is hidden

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

.github/workflows/test-frontend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
uses: actions/checkout@v2
1414

1515
- name: Cypress run
16-
uses: cypress-io/github-action@v2
16+
uses: cypress-io/github-action@v4
1717
with:
1818
start: npm run start:json-server, npm run start:test
1919
wait-on: 'http://localhost:4000'

frontend/.eslintrc.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
},
77

88
extends: [
9-
'plugin:vue/essential',
9+
'plugin:vue/vue3-recommended',
1010
'eslint:recommended',
1111
'@vue/prettier'
1212
],
@@ -21,6 +21,9 @@ module.exports = {
2121
? 'warn'
2222
: 'off',
2323
'no-debugger':
24-
process.env.NODE_ENV === 'production' ? 'warn' : 'off'
24+
process.env.NODE_ENV === 'production'
25+
? 'warn'
26+
: 'off',
27+
'vue/no-v-html': 'off'
2528
}
2629
}

frontend/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.DS_Store
22
node_modules
3-
/dist
3+
dist
4+
cypress
45

56
# local env files
67
.env*

frontend/babel.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
module.exports = {
2-
presets: ['@vue/cli-plugin-babel/preset']
2+
presets: ['@vue/cli-plugin-babel/preset'],
3+
plugins: ['@babel/plugin-transform-runtime']
34
}

frontend/cypress.config.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
const { defineConfig } = require('cypress')
2+
const webpackConfig = require('@vue/cli-service/webpack.config.js')
3+
4+
module.exports = defineConfig({
5+
e2e: {
6+
baseUrl: 'http://localhost:4000',
7+
specPattern: 'tests/**/*.spec.js',
8+
supportFile: 'tests/support/index.js'
9+
},
10+
folders: {
11+
fixturesFolder: 'tests/fixtures',
12+
screenshotsFolder: 'tests/screenshots',
13+
videosFolder: 'tests/videos'
14+
},
15+
component: {
16+
devServer: {
17+
framework: 'vue',
18+
bundler: 'webpack',
19+
webpackConfig
20+
}
21+
},
22+
browser: {
23+
chromeWebSecurity: false
24+
},
25+
env: {
26+
apiUrl: 'http://localhost:3000'
27+
}
28+
})

frontend/cypress.json

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

0 commit comments

Comments
 (0)