chore: update deps

This commit is contained in:
Anthony Fu 2021-01-20 03:37:06 +08:00
parent e01131ea1b
commit 559a7751a1
5 changed files with 452 additions and 184 deletions

View File

@ -5,39 +5,39 @@
"build": "cross-env NODE_ENV=production vite-ssg build --script async"
},
"dependencies": {
"@vueuse/core": "^4.0.5",
"@vueuse/core": "^4.0.8",
"nprogress": "^0.2.0",
"vue": "^3.0.5",
"vue-i18n": "9.0.0-rc.1",
"vue-router": "^4.0.2"
"vue-i18n": "^9.0.0-rc.3",
"vue-router": "^4.0.3"
},
"devDependencies": {
"@antfu/eslint-config-vue": "^0.4.3",
"@iconify/json": "^1.1.284",
"@iconify/json": "^1.1.288",
"@intlify/vite-plugin-vue-i18n": "^1.0.0-beta.12",
"@tailwindcss/typography": "^0.3.1",
"@tailwindcss/typography": "^0.4.0",
"@types/nprogress": "^0.2.0",
"@typescript-eslint/eslint-plugin": "^4.12.0",
"@vitejs/plugin-vue": "^1.0.5",
"@typescript-eslint/eslint-plugin": "^4.14.0",
"@vitejs/plugin-vue": "^1.1.0",
"@vue/compiler-sfc": "^3.0.5",
"@vue/server-renderer": "^3.0.5",
"@vuedx/typescript-plugin-vue": "^0.4.1",
"autoprefixer": "^10.2.1",
"@vuedx/typescript-plugin-vue": "^0.6.0",
"autoprefixer": "^10.2.3",
"cross-env": "^7.0.3",
"eslint": "^7.17.0",
"eslint": "^7.18.0",
"markdown-it-prism": "^2.1.4",
"pnpm": "^5.14.3",
"pnpm": "^5.15.1",
"postcss": "^8.2.4",
"postcss-nested": "^5.0.3",
"tailwindcss": "^2.0.2",
"typescript": "^4.1.3",
"vite": "^2.0.0-beta.19",
"vite": "2.0.0-beta.31",
"vite-plugin-components": "^0.6.6",
"vite-plugin-icons": "^0.2.1",
"vite-plugin-md": "^0.2.1",
"vite-plugin-pwa": "^0.3.4",
"vite-plugin-pwa": "^0.3.9",
"vite-plugin-voie": "^0.7.3",
"vite-ssg": "^0.3.1",
"vite-ssg": "^0.4.0",
"voie-pages": "^0.4.0"
},
"eslintConfig": {

File diff suppressed because it is too large Load Diff

View File

@ -7,6 +7,7 @@ import { ViteSSG } from 'vite-ssg'
import installPlugins from './plugins'
import App from './App.vue'
// https://github.com/antfu/vite-ssg
export const createApp = ViteSSG(
App,
{ routes },

View File

@ -9,9 +9,9 @@ import es from '../../locales/es.json'
import vi from '../../locales/vi.json'
import ja from '../../locales/ja.json'
export default (app: App) => {
const i18n = createI18n({
legacy: false,
locale: 'en',
messages: {
en,
@ -20,7 +20,7 @@ export default (app: App) => {
es,
vi,
ja
}
},
})
app.use(i18n)

View File

@ -82,8 +82,8 @@ const config: UserConfig = {
// https://github.com/intlify/vite-plugin-vue-i18n
VueI18n({
include: [path.resolve(__dirname, 'locales/**')]
})
include: [path.resolve(__dirname, 'locales/**')],
}),
],
}