Skip to content

Commit

Permalink
feat: use unplugin-auto-import and unplugin-vue-components
Browse files Browse the repository at this point in the history
  • Loading branch information
tachibana-shin committed Mar 8, 2024
1 parent f2f4406 commit 16392b3
Show file tree
Hide file tree
Showing 12 changed files with 366 additions and 37 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ module.exports = {
// https://github.com/prettier/eslint-config-prettier#installation
// usage with Prettier, provided by 'eslint-config-prettier'.
"prettier",
'./.eslintrc-auto-import.json'
],

plugins: [
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ jobs:
- name: Install depends
run: npm i

- name: Emit auto import
run: pnpm test src/logic/noop.spec.ts

- name: Typing
run: pnpm typing

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ jobs:
- name: Install depends
run: pnpm i

- name: Emit auto import
run: pnpm test src/logic/noop.spec.ts

- name: Run ESLint
run: pnpm lint #--fix

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pretter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
- name: Install depends
run: pnpm i

- name: Emit auto import
run: pnpm test src/logic/noop.spec.ts

- name: Fretit
run: pnpm pretit

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
- name: Install depends with npm
run: npm i

- name: Emit auto import
run: pnpm test src/logic/noop.spec.ts

- name: Typing
run: pnpm typing

Expand Down Expand Up @@ -59,6 +62,9 @@ jobs:
- name: Install depends
run: pnpm i

- name: Emit auto import
run: pnpm test src/logic/noop.spec.ts

- name: Push to branch `release`
run: |
git branch release -f
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/typing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,8 @@ jobs:
- name: Install depends
run: npm i

- name: Emit auto import
run: pnpm test src/logic/noop.spec.ts

- name: Typing
run: pnpm typing
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@ yarn-error.log*
package-lock.json
build
/src-capacitor/android/app/src/main/assets

/.eslintrc-auto-import.json
/auto-imports.d.ts
/components.d.ts
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"@fontsource/caveat": "^4.5.10",
"@iconify/vue": "^4.1.1",
"@quasar/extras": "^1.16.9",
"@vueuse/components": "^10.9.0",
"@vueuse/core": "^9.13.0",
"@vueuse/head": "^1.3.1",
"@vueuse/shared": "^9.13.0",
Expand All @@ -36,6 +37,7 @@
"dayjs": "^1.11.9",
"embed-fbcmt-client": "^0.1.32",
"eruda2": "0.0.2-b8",
"fb-comments-web": "^0.0.11",
"group-array": "^1.0.0",
"hls.js": "1.5.5",
"htmlparser2": "^8.0.2",
Expand Down Expand Up @@ -69,6 +71,7 @@
"vue-router": "^4.2.4"
},
"devDependencies": {
"@iconify/json": "^2.2.190",
"@intlify/vite-plugin-vue-i18n": "^6.0.3",
"@quasar/app-vite": "^1.6.2",
"@quasar/cli": "^2.2.3",
Expand Down Expand Up @@ -105,6 +108,9 @@
"semver": "^7.5.4",
"tsx": "^3.12.7",
"typescript": "^5.3.3",
"unplugin-auto-import": "^0.17.5",
"unplugin-icons": "^0.18.5",
"unplugin-vue-components": "^0.26.0",
"vite-plugin-remove-console": "^2.1.1",
"vite-plugin-rewrite-all": "^1.0.1",
"vite-plugin-windicss": "^1.9.1",
Expand Down
Loading

0 comments on commit 16392b3

Please sign in to comment.