Skip to content

Commit b58fc7c

Browse files
committed
Vue 3, Vite, Vitest
1 parent eee3509 commit b58fc7c

File tree

110 files changed

+7592
-16703
lines changed

Some content is hidden

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

110 files changed

+7592
-16703
lines changed

.browserslistrc

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

.editorconfig

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

.eslintrc.cjs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/* eslint-env node */
2+
require('@rushstack/eslint-patch/modern-module-resolution')
3+
4+
module.exports = {
5+
root: true,
6+
'extends': [
7+
'plugin:vue/vue3-recommended',
8+
'eslint:recommended',
9+
'@vue/eslint-config-typescript',
10+
'@vue/eslint-config-prettier/skip-formatting'
11+
],
12+
rules: {
13+
'vue/multi-word-component-names': 'off'
14+
},
15+
overrides: [
16+
{
17+
files: [
18+
'cypress/e2e/**/*.{cy,spec}.{js,ts,jsx,tsx}',
19+
'cypress/support/**/*.{js,ts,jsx,tsx}'
20+
],
21+
'extends': [
22+
'plugin:cypress/recommended'
23+
]
24+
}
25+
],
26+
parserOptions: {
27+
ecmaVersion: 'latest'
28+
}
29+
}

.eslintrc.js

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

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ jobs:
4040
- uses: cypress-io/github-action@v6
4141
with:
4242
build: yarn build
43-
start: yarn serve
43+
start: npx vite preview --port 4173
4444
record: true
45-
wait-on: http://localhost:8080
4645
env:
4746
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
4847
lint:
@@ -62,6 +61,8 @@ jobs:
6261
- name: Install dependencies
6362
run: yarn install
6463
- name: Run ESLint
65-
run: npx vue-cli-service lint
64+
run: yarn lint
6665
- name: Run Stylelint
6766
run: npx stylelint src/**/*.css src/**/*.vue src/**/*.scss
67+
- name: Type check
68+
run: yarn type-check

.github/workflows/deploy.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,7 @@ jobs:
4747
uses: actions/upload-pages-artifact@v3
4848
with:
4949
path: "dist/"
50-
- name: Notify Bugsnag
51-
uses: psprings/bugsnag-release-action@v0.0.3
52-
with:
53-
apiKey: ${{ secrets.BUGSNAG_API_KEY }}
54-
appVersion: ${{ github.sha }}
55-
releaseStage: production
5650

57-
# Deployment job
5851
deploy:
5952
environment:
6053
name: github-pages
@@ -65,3 +58,9 @@ jobs:
6558
- name: Deploy to GitHub Pages
6659
id: deployment
6760
uses: actions/deploy-pages@v4
61+
- name: Notify Bugsnag
62+
uses: psprings/bugsnag-release-action@v0.0.3
63+
with:
64+
apiKey: ${{ secrets.BUGSNAG_API_KEY }}
65+
appVersion: ${{ github.sha }}
66+
releaseStage: production

.gitignore

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,34 @@
1-
/dist
2-
/docs
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
39

4-
/tests/e2e/videos/
5-
/tests/e2e/screenshots/
10+
node_modules
11+
.DS_Store
12+
dist
13+
dist-ssr
14+
coverage
15+
*.local
16+
17+
/cypress/videos/
18+
/cypress/screenshots/
19+
/cypress/downloads/downloads.html
20+
21+
# Editor directories and files
22+
.vscode/*
23+
!.vscode/extensions.json
24+
.idea
25+
*.suo
26+
*.ntvs*
27+
*.njsproj
28+
*.sln
29+
*.sw?
30+
31+
*.tsbuildinfo
632

733
# Yarn
834
.pnp.*

.husky/pre-commit

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

.prettierrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "https://json.schemastore.org/prettierrc",
3+
"semi": false,
4+
"tabWidth": 2,
5+
"singleQuote": true,
6+
"printWidth": 100,
7+
"trailingComma": "none"
8+
}

.stylelintrc.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
{
22
"extends": [
33
"stylelint-config-standard-scss",
4-
"stylelint-config-recommended-vue/scss"
5-
],
6-
"rules": {
7-
"max-nesting-depth": null,
8-
"selector-max-id": null
9-
}
4+
"stylelint-config-recommended-vue/scss",
5+
"stylelint-config-recess-order"
6+
]
107
}

0 commit comments

Comments
 (0)