Skip to content

Commit

Permalink
chore!: remove vue2, vite2 and vite3
Browse files Browse the repository at this point in the history
updated deps
  • Loading branch information
JohnCampionJr committed Dec 5, 2023
1 parent 6d924b3 commit db752fa
Show file tree
Hide file tree
Showing 14 changed files with 347 additions and 9,765 deletions.
6 changes: 0 additions & 6 deletions .eslintrc.json

This file was deleted.

8 changes: 8 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import antfu from '@antfu/eslint-config'

export default antfu(
{
unocss: true,
formatters: true,
},
)
21 changes: 11 additions & 10 deletions examples/client-side/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,19 @@
"serve": "vite preview"
},
"dependencies": {
"vue": "^3.2.31",
"vue-router": "4.0.3"
"vue": "^3.3.10",
"vue-router": "^4.2.5"
},
"devDependencies": {
"@vitejs/plugin-vue": "^1.10.2",
"@vue/compiler-sfc": "^3.2.31",
"@vitejs/plugin-vue": "^4.5.0",
"@vue/compiler-sfc": "^3.3.8",
"cross-env": "^7.0.3",
"nodemon": "^2.0.15",
"typescript": "^4.6.2",
"vite": "^2.8.6",
"vite-plugin-md": "^0.6.7",
"vite-plugin-pages": "0.12.1",
"vite-plugin-vue-layouts": "workspace:*"
"nodemon": "^3.0.1",
"typescript": "^5.3.2",
"vite": "^5.0.2",
"vite-plugin-inspect": "^0.8.1",
"vite-plugin-pages": "^0.32.0",
"vite-plugin-vue-layouts": "workspace:*",
"unplugin-vue-markdown": "^0.25.2"
}
}
8 changes: 8 additions & 0 deletions examples/client-side/src/pages/news/index.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<template>
<p>/news/index.vue</p>
</template>
<route>
{
meta: {
layout: "second"
}
}
</route>

4 changes: 2 additions & 2 deletions examples/client-side/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig } from 'vite'
import Vue from '@vitejs/plugin-vue'
import Pages from 'vite-plugin-pages'
import Markdown from 'vite-plugin-md'
import Markdown from 'unplugin-vue-markdown/vite'
import { ClientSideLayout } from 'vite-plugin-vue-layouts'

const config = defineConfig({
Expand All @@ -14,7 +14,7 @@ const config = defineConfig({
syncIndex: false,
}),
ClientSideLayout(),
Markdown(),
Markdown({}),
],
})

Expand Down
21 changes: 11 additions & 10 deletions examples/spa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,19 @@
"serve": "vite preview"
},
"dependencies": {
"vue": "^3.2.31",
"vue-router": "4.0.3"
"vue": "^3.3.10",
"vue-router": "^4.2.5"
},
"devDependencies": {
"@vitejs/plugin-vue": "^1.10.2",
"@vue/compiler-sfc": "^3.2.31",
"@vitejs/plugin-vue": "^4.5.0",
"@vue/compiler-sfc": "^3.3.8",
"cross-env": "^7.0.3",
"nodemon": "^2.0.15",
"typescript": "^4.6.2",
"vite": "^2.8.6",
"vite-plugin-md": "^0.6.7",
"vite-plugin-pages": "0.12.1",
"vite-plugin-vue-layouts": "workspace:*"
"nodemon": "^3.0.1",
"typescript": "^5.3.2",
"vite": "^5.0.2",
"vite-plugin-inspect": "^0.8.1",
"vite-plugin-pages": "^0.32.0",
"vite-plugin-vue-layouts": "workspace:*",
"unplugin-vue-markdown": "^0.25.2"
}
}
4 changes: 2 additions & 2 deletions examples/spa/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineConfig } from 'vite'
import Vue from '@vitejs/plugin-vue'
import Pages from 'vite-plugin-pages'
import Layouts from 'vite-plugin-vue-layouts'
import Markdown from 'vite-plugin-md'
import Markdown from 'unplugin-vue-markdown/vite'

const config = defineConfig({
plugins: [
Expand All @@ -18,7 +18,7 @@ const config = defineConfig({
layoutsDirs: 'src/**/layouts',
pagesDirs: [],
}),
Markdown(),
Markdown({}),
],
})

Expand Down
25 changes: 13 additions & 12 deletions examples/ssg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,22 @@
"serve": "vite preview"
},
"dependencies": {
"vue": "^3.2.31",
"vue-router": "4.0.3"
"vue": "^3.3.10",
"vue-router": "^4.2.5"
},
"devDependencies": {
"@vitejs/plugin-vue": "^1.10.2",
"@vue/compiler-sfc": "^3.2.31",
"@vue/server-renderer": "^3.2.31",
"@vueuse/head": "^0.5.1",
"@vitejs/plugin-vue": "^4.5.0",
"@vue/compiler-sfc": "^3.3.8",
"@vue/server-renderer": "^3.3.10",
"@vueuse/head": "^2.0.0",
"cross-env": "^7.0.3",
"nodemon": "^2.0.15",
"typescript": "^4.6.2",
"vite": "^2.8.6",
"vite-plugin-md": "^0.6.7",
"vite-plugin-pages": "0.12.1",
"nodemon": "^3.0.1",
"typescript": "^5.3.2",
"vite": "^5.0.2",
"vite-plugin-inspect": "^0.8.1",
"vite-plugin-pages": "^0.32.0",
"vite-plugin-vue-layouts": "workspace:*",
"vite-ssg": "^0.10.1"
"unplugin-vue-markdown": "^0.25.2",
"vite-ssg": "^0.23.5"
}
}
4 changes: 2 additions & 2 deletions examples/ssg/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineConfig } from 'vite'
import Vue from '@vitejs/plugin-vue'
import Pages from 'vite-plugin-pages'
import Layouts from 'vite-plugin-vue-layouts'
import Markdown from 'vite-plugin-md'
import Markdown from 'unplugin-vue-markdown/vite'

const config = defineConfig({
plugins: [
Expand All @@ -14,7 +14,7 @@ const config = defineConfig({
syncIndex: false,
}),
Layouts(),
Markdown(),
Markdown({}),
],
ssgOptions: {
formatting: 'prettify',
Expand Down
8 changes: 2 additions & 6 deletions examples/vitesse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"test:unit": "vitest",
"typecheck": "vue-tsc --noEmit",
"up": "taze major -I",
"postinstall": "npx simple-git-hooks",
"sizecheck": "npx vite-bundle-visualizer"
},
"lint-staged": {
Expand All @@ -32,7 +31,7 @@
"vue-router": "^4.2.5"
},
"devDependencies": {
"@antfu/eslint-config": "^2.3.1",
"@antfu/eslint-config": "^2.3.4",
"@iconify-json/carbon": "^1.1.24",
"@intlify/unplugin-vue-i18n": "^1.5.0",
"@types/markdown-it-link-attributes": "^3.0.4",
Expand All @@ -47,7 +46,7 @@
"cypress-vite": "^1.5.0",
"eslint": "^8.55.0",
"eslint-plugin-cypress": "^2.15.1",
"eslint-plugin-format": "^0.0.1",
"eslint-plugin-format": "^0.1.0",
"https-localhost": "^4.7.1",
"lint-staged": "^15.2.0",
"markdown-it-link-attributes": "^4.0.1",
Expand Down Expand Up @@ -75,8 +74,5 @@
"vite-ssg-sitemap": "^0.6.1",
"vitest": "^1.0.0",
"vue-tsc": "^1.8.24"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
}
}
Loading

0 comments on commit db752fa

Please sign in to comment.