Skip to content

Commit

Permalink
Example: Update Nuxt examples
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Dec 11, 2024
1 parent e6fc7c6 commit 60c006d
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 22 deletions.
1 change: 1 addition & 0 deletions examples/nuxt.js-with-runtime-rendering/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export default defineNuxtConfig({
compatibilityDate: '2024-11-01',
app: {
head: {
script: [
Expand Down
16 changes: 9 additions & 7 deletions examples/nuxt.js-with-runtime-rendering/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@
"name": "nuxt.js-with-runtime-rendering",
"private": true,
"scripts": {
"build": "nuxt prepare && nuxt build",
"dev": "nuxt prepare && nuxt dev",
"generate": "nuxt prepare && nuxt generate",
"preview": "nuxt prepare && nuxt preview"
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"dependencies": {
"@master/css-runtime": "workspace:^",
"@master/css.vue": "workspace:^"
},
"devDependencies": {
"nuxt": "^3.10.3",
"vue": "^3.4.19",
"vue-router": "^4.3.0"
"@types/node": "^22.10.2",
"nuxt": "^3.14.1592",
"vue": "^3.5.13",
"vue-router": "^4.5.0"
}
}
1 change: 1 addition & 0 deletions examples/nuxt.js-with-static-extraction/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import CSSExtractorPlugin from '@master/css-extractor.vite'

export default defineNuxtConfig({
compatibilityDate: '2024-11-01',
vite: {
plugins: [
CSSExtractorPlugin()
Expand Down
16 changes: 9 additions & 7 deletions examples/nuxt.js-with-static-extraction/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@
"type": "module",
"private": true,
"scripts": {
"build": "nuxt prepare && nuxt build",
"dev": "nuxt prepare && nuxt dev",
"generate": "nuxt prepare && nuxt generate",
"preview": "nuxt prepare && nuxt preview"
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"devDependencies": {
"@master/css-extractor.vite": "workspace:^",
"@master/css-runtime": "workspace:^",
"nuxt": "^3.10.3",
"vue": "^3.4.19",
"vue-router": "^4.3.0"
"@types/node": "^22.10.2",
"nuxt": "^3.14.1592",
"vue": "^3.5.13",
"vue-router": "^4.5.0"
}
}
1 change: 1 addition & 0 deletions examples/nuxt.js/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export default defineNuxtConfig({
compatibilityDate: '2024-11-01',
modules: ['@master/css.nuxt']
})
17 changes: 9 additions & 8 deletions examples/nuxt.js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@
"name": "nuxt.js-with-progressive-rendering",
"private": true,
"scripts": {
"build": "nuxt prepare && nuxt build",
"dev": "nuxt prepare && nuxt dev",
"generate": "nuxt prepare && nuxt generate",
"preview": "nuxt prepare && nuxt preview"
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"dependencies": {
"@master/css-server": "workspace:^",
"@master/css.nuxt": "workspace:^",
"@master/css.vue": "workspace:^"
},
"devDependencies": {
"@types/node": "^22.10.1",
"nuxt": "^3.10.3",
"vue": "^3.4.19",
"vue-router": "^4.3.0"
"@types/node": "^22.10.2",
"nuxt": "^3.14.1592",
"vue": "^3.5.13",
"vue-router": "^4.5.0"
}
}

0 comments on commit 60c006d

Please sign in to comment.