Skip to content

Commit 7666be9

Browse files
committed
fix(formi): upgrade nuxt
1 parent 4355c9a commit 7666be9

11 files changed

+3677
-1529
lines changed

.changeset/spicy-peaches-turn.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'formi': minor
3+
---
4+
5+
upgrade nuxt

.npmrc

-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
public-hoist-pattern[]=*eslint*
2-
public-hoist-pattern[]=*nuxt*
32
public-hoist-pattern[]=*prettier*
43
public-hoist-pattern[]=*vitest*
5-
public-hoist-pattern[]=*vue*
6-
public-hoist-pattern[]=defu
74
public-hoist-pattern[]=next
85
public-hoist-pattern[]=publint
9-
public-hoist-pattern[]=ufo

.syncpackrc

-9
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,6 @@
66
"resolutions"
77
],
88
"versionGroups": [
9-
{
10-
"dependencies": [
11-
"vue"
12-
],
13-
"packages": [
14-
"@yeger/vue-masonry-wall",
15-
"@yeger/vue-masonry-wall-docs"
16-
]
17-
},
189
{
1910
"dependencies": [
2011
"@vue/test-utils",

apps/formi/app.vue

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<template>
2+
<NuxtPwaManifest />
23
<NuxtLayout>
34
<NuxtPage />
45
</NuxtLayout>

apps/formi/components/Toolbar.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ const { homeLink } = useLinks()
2020
<div class="flex-1" />
2121
<Icon
2222
name="carbon:save"
23-
class="transition-color font-bold text-stone-900 duration-500"
24-
:class="{ 'text-stone-400': !loading }"
23+
class="transition-color font-bold duration-500"
24+
:class="{ 'text-stone-900': loading, 'text-stone-400': !loading }"
2525
/>
2626
</div>
2727
</template>

apps/formi/nuxt.config.ts

+17-5
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ export default defineNuxtConfig({
2828
},
2929
},
3030
modules: [
31-
'@kevinmarrec/nuxt-pwa',
3231
'@nuxtjs/robots',
3332
'@unocss/nuxt',
33+
'@vite-pwa/nuxt',
3434
'@vueuse/nuxt',
3535
'nuxt-icon',
3636
],
@@ -39,16 +39,28 @@ export default defineNuxtConfig({
3939
transpile: ['vue-toastification'],
4040
},
4141
pwa: {
42+
registerType: 'autoUpdate',
4243
manifest: {
4344
name: appName,
4445
short_name: appName,
46+
description:
47+
'Formi is a web-application for model checking first-order-logic formulas.',
4548
background_color: '#f5f5f4',
4649
theme_color: '#f5f5f4',
50+
icons: [
51+
{
52+
src: '512x512.png',
53+
sizes: '512x512',
54+
type: 'image/png',
55+
purpose: 'any maskable',
56+
},
57+
],
4758
},
48-
meta: {
49-
favicon: false,
50-
description:
51-
'Formi is a web-application for model checking first-order-logic formulas.',
59+
workbox: {
60+
globPatterns: ['**/*.{js,css,html,png,svg,ico}'],
61+
},
62+
client: {
63+
installPrompt: true,
5264
},
5365
},
5466
unocss: {

apps/formi/package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,22 @@
2727
"zod": "3.22.4"
2828
},
2929
"devDependencies": {
30-
"@kevinmarrec/nuxt-pwa": "0.17.0",
3130
"@nuxtjs/robots": "3.0.0",
31+
"@unhead/shared": "1.8.10",
3232
"@unocss/nuxt": "0.58.4",
3333
"@unocss/reset": "0.58.4",
34+
"@vite-pwa/nuxt": "0.4.0",
3435
"@vue/shared": "3.4.15",
3536
"@vueuse/core": "10.7.2",
3637
"@vueuse/nuxt": "10.7.2",
3738
"node-fetch-native": "1.6.1",
38-
"nuxt": "3.5.3",
39-
"nuxt-icon": "0.2.6",
39+
"nuxt": "3.9.3",
40+
"nuxt-icon": "0.6.8",
4041
"typescript": "5.3.3",
4142
"ufo": "1.3.2",
4243
"vite": "5.0.12",
4344
"vue": "3.4.15",
45+
"vue-router": "4.2.5",
4446
"vue-tsc": "1.8.27"
4547
}
4648
}

apps/formi/tsconfig.json

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
// https://nuxt.com/docs/guide/concepts/typescript
33
"extends": "./.nuxt/tsconfig.json",
4+
"compilerOptions": {
5+
"baseUrl": "./.nuxt",
6+
},
47
}

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"bundlesize": "nr turbo run bundlesize",
1616
"changeset": "changeset",
1717
"ci": "cross-env COVERAGE=true nr turbo run build bundlesize generate lint test check:publish check:tsc check:vue --output-logs=errors-only",
18-
"clean": "rimraf -g **/.tsbuildinfo **/tsconfig.tsbuildinfo",
18+
"clean": "rimraf -g **/.tsbuildinfo **/tsconfig.tsbuildinfo **/vite.config.ts.*",
1919
"dev": "nr turbo run dev --parallel",
2020
"fix": "nr turbo run lint lint:root -- --fix",
2121
"codegen": "nr turbo run codegen",
@@ -59,6 +59,9 @@
5959
"vitest": "1.2.2"
6060
},
6161
"pnpm": {
62+
"overrides": {
63+
"@codemirror/state": "6.2.0"
64+
},
6265
"packageExtensions": {
6366
"vue-template-compiler": {
6467
"peerDependencies": {

0 commit comments

Comments
 (0)