Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update deps #145

Merged
merged 3 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/molecules/VRoadizImage/VRoadizImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default defineComponent({
|| (!isPicture.value
&& !props.densities
&& ($img.options.presets?.default?.sizes || $img.options.screens))
|| undefined,
|| undefined,
provider: 'interventionRequest',
modifiers: {
...modifiers.value,
Expand Down
94 changes: 47 additions & 47 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@ if (isNuxtStories) {
}

export default defineNuxtConfig({
compatibilityDate: '2024-07-24',
devtools: { enabled: true },
experimental: {
asyncContext: true,
appManifest: false, // We don't need client route rules for now, and Nuxt makes an extra request to get them.
},
plugins,
// Don' use layer for now
// extends: ['github:rezozero/nuxt-layer#v0.1.6'],
modules: [
'@nuxtjs/svg-sprite',
// the Intervention Request provider module has to be registered before the Nuxt image module
Expand All @@ -35,12 +26,17 @@ export default defineNuxtConfig({
'@nuxt/eslint',
'@nuxtjs/robots',
],
plugins,
// Don' use layer for now
// extends: ['github:rezozero/nuxt-layer#v0.1.6'],
components: [
'~/components/atoms',
'~/components/molecules',
'~/components/organisms',
{ path: '~/components/blocks/', global: true },
],
devtools: { enabled: true },
css: ['~/assets/scss/main.scss'],
runtimeConfig: {
public: {
version,
Expand Down Expand Up @@ -81,29 +77,11 @@ export default defineNuxtConfig({
},
},
},
css: ['~/assets/scss/main.scss'],
vite: {
css: {
preprocessorOptions: {
scss: {
additionalData: hoistUseStatements(`@import "~/assets/scss/_style-resources.scss";`),
quietDeps: true,
// For now, just silence the deprecation warning.
// But we have to use Dart Sass modern API https://sass-lang.com/documentation/breaking-changes/legacy-js-api/ soon.
// Vite 5.x uses the legacy API as default https://vitejs.dev/config/shared-options.html#css-preprocessoroptions
// Probably for best performance we should use `api: "modern-compiler"` and `sass-embedded` package.
// Waiting on Vite fixing the missing sourcemap files https://github.com/vitejs/vite/pull/18113 warning.
silenceDeprecations: ['legacy-js-api'],
},
},
},
plugins: [
// https://github.com/jpkleemans/vite-svg-loader?tab=readme-ov-file#setup
svgLoader({
defaultImport: 'url',
}),
],
experimental: {
asyncContext: true,
appManifest: false, // We don't need client route rules for now, and Nuxt makes an extra request to get them.
},
compatibilityDate: '2024-07-24',
nitro: {
routeRules: {
'/**': {
Expand Down Expand Up @@ -131,10 +109,35 @@ export default defineNuxtConfig({
},
},
},
// https://github.com/nuxt-modules/svg-sprite#options
svgSprite: {
input: '~/assets/images/icons',
output: '~/assets/images/sprites',
vite: {
css: {
preprocessorOptions: {
scss: {
additionalData: hoistUseStatements(`@import "~/assets/scss/_style-resources.scss";`),
quietDeps: true,
// For now, just silence the deprecation warning.
// But we have to use Dart Sass modern API https://sass-lang.com/documentation/breaking-changes/legacy-js-api/ soon.
// Vite 5.x uses the legacy API as default https://vitejs.dev/config/shared-options.html#css-preprocessoroptions
// Probably for best performance we should use `api: "modern-compiler"` and `sass-embedded` package.
// Waiting on Vite fixing the missing sourcemap files https://github.com/vitejs/vite/pull/18113 warning.
silenceDeprecations: ['legacy-js-api'],
},
},
},
plugins: [
// https://github.com/jpkleemans/vite-svg-loader?tab=readme-ov-file#setup
svgLoader({
defaultImport: 'url',
}),
],
},
// https://eslint.nuxt.com/packages/module
eslint: {
config: {
stylistic: {
indent: 4,
},
},
},
// https://v8.i18n.nuxtjs.org/getting-started/setup
i18n: {
Expand Down Expand Up @@ -172,6 +175,11 @@ export default defineNuxtConfig({
},
},
},
// https://nuxtseo.com/robots/api/config
robots: {
allow: ['/'],
disallow: ['/rz-admin', '/maintenance', '/_icons', '/api'],
},
// https://www.nuxtseo.com/sitemap/getting-started/installation
sitemap: {
sources: ['/api/sitemap'],
Expand All @@ -183,17 +191,9 @@ export default defineNuxtConfig({
'!playground', // exclude layer stories
],
},
// https://eslint.nuxt.com/packages/module
eslint: {
config: {
stylistic: {
indent: 4,
},
},
},
// https://nuxtseo.com/robots/api/config
robots: {
allow: ['/'],
disallow: ['/rz-admin', '/maintenance', '/_icons', '/api'],
// https://github.com/nuxt-modules/svg-sprite#options
svgSprite: {
input: '~/assets/images/icons',
output: '~/assets/images/sprites',
},
})
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
},
"devDependencies": {
"@nuxt/devtools": "latest",
"@nuxt/eslint": "^0.5.7",
"@nuxt/eslint": "^0.6.1",
"@nuxt/image": "^1.8.1",
"@nuxtjs/i18n": "^8.5.5",
"@nuxtjs/robots": "^4.1.9",
"@nuxtjs/sitemap": "^6.1.1",
"@nuxtjs/robots": "^4.1.10",
"@nuxtjs/sitemap": "^6.1.3",
"@nuxtjs/svg-sprite": "^1.0.2",
"@rezo-zero/intervention-request-provider": "^1.1.1",
"@rezo-zero/nuxt-cache-control": "^0.1.6",
Expand All @@ -31,14 +31,14 @@
"@roadiz/types": "^0.2.0",
"@types/body-scroll-lock": "^3.1.2",
"@types/json-schema": "^7.0.15",
"@vueuse/nuxt": "^11.1.0",
"@vueuse/nuxt": "^11.2.0",
"eslint": "^9.13.0",
"husky": "^9.1.6",
"include-media": "^2.0.0",
"msw": "^2.5.2",
"msw": "^2.6.0",
"nuxt": "^3.13.2",
"postcss-html": "^1.7.0",
"sass": "^1.79.4",
"sass": "^1.80.5",
"stylelint": "^16.10.0",
"stylelint-config-css-modules": "^4.4.0",
"stylelint-config-idiomatic-order": "^10.0.0",
Expand All @@ -52,10 +52,10 @@
"@popperjs/core": "^2.11.8",
"@sentry/browser": "^8.36.0",
"@sentry/node": "^8.36.0",
"@sentry/vue": "^8.35.0",
"@types/lodash": "^4.17.10",
"@sentry/vue": "^8.36.0",
"@types/lodash": "^4.17.13",
"@vue-a11y/skip-to": "^2.1.2",
"@vueuse/core": "^11.1.0",
"@vueuse/core": "^11.2.0",
"body-scroll-lock": "^3.1.5",
"floating-vue": "^5.2.2",
"lodash": "^4.17.21",
Expand Down
Loading