@studio-fes/create-fes-app 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -0
- package/bin/create-fes-app.mjs +180 -0
- package/package.json +28 -0
- package/templates/craft/.env +6 -0
- package/templates/craft/.env.example +9 -0
- package/templates/craft/.nuxt/app.config.mjs +25 -0
- package/templates/craft/.nuxt/components.d.ts +212 -0
- package/templates/craft/.nuxt/eslint.config.d.mts +9 -0
- package/templates/craft/.nuxt/eslint.config.mjs +77 -0
- package/templates/craft/.nuxt/fetch.d.ts +1 -0
- package/templates/craft/.nuxt/graphql-operations/index.d.ts +2064 -0
- package/templates/craft/.nuxt/graphql-operations/index.js +0 -0
- package/templates/craft/.nuxt/i18n-route-resources.mjs +8 -0
- package/templates/craft/.nuxt/image/providers.d.ts +53 -0
- package/templates/craft/.nuxt/imports.d.ts +128 -0
- package/templates/craft/.nuxt/link-checker/routes.json +1 -0
- package/templates/craft/.nuxt/manifest/meta/8c7a2100-6449-4269-93f2-c4a4d3c46ac1.json +1 -0
- package/templates/craft/.nuxt/module/nuxt-schema-org.d.ts +14 -0
- package/templates/craft/.nuxt/module/nuxt-seo-utils.assets.d.ts +25 -0
- package/templates/craft/.nuxt/module/nuxt-seo-utils.d.ts +36 -0
- package/templates/craft/.nuxt/module/nuxt-site-config.d.ts +46 -0
- package/templates/craft/.nuxt/nuxt-graphql-middleware/client-options.d.ts +7 -0
- package/templates/craft/.nuxt/nuxt-graphql-middleware/client-options.js +4 -0
- package/templates/craft/.nuxt/nuxt-graphql-middleware/config.d.ts +7 -0
- package/templates/craft/.nuxt/nuxt-graphql-middleware/config.js +7 -0
- package/templates/craft/.nuxt/nuxt-graphql-middleware/documents.d.ts +12 -0
- package/templates/craft/.nuxt/nuxt-graphql-middleware/graphql.config.d.ts +10 -0
- package/templates/craft/.nuxt/nuxt-graphql-middleware/graphql.config.js +21 -0
- package/templates/craft/.nuxt/nuxt-graphql-middleware/helpers.d.ts +5 -0
- package/templates/craft/.nuxt/nuxt-graphql-middleware/helpers.js +7 -0
- package/templates/craft/.nuxt/nuxt-graphql-middleware/hook-documents.graphql +0 -0
- package/templates/craft/.nuxt/nuxt-graphql-middleware/hook-files.d.ts +4 -0
- package/templates/craft/.nuxt/nuxt-graphql-middleware/hook-files.js +4 -0
- package/templates/craft/.nuxt/nuxt-graphql-middleware/mcp.d.ts +15 -0
- package/templates/craft/.nuxt/nuxt-graphql-middleware/mcp.js +74 -0
- package/templates/craft/.nuxt/nuxt-graphql-middleware/nitro.d.ts +27 -0
- package/templates/craft/.nuxt/nuxt-graphql-middleware/operation-hashes.d.ts +6 -0
- package/templates/craft/.nuxt/nuxt-graphql-middleware/operation-types.d.ts +46 -0
- package/templates/craft/.nuxt/nuxt-graphql-middleware/operation-types.js +4 -0
- package/templates/craft/.nuxt/nuxt-graphql-middleware/operation-variables.d.ts +4 -0
- package/templates/craft/.nuxt/nuxt-graphql-middleware/operation-variables.js +29 -0
- package/templates/craft/.nuxt/nuxt-graphql-middleware/response.d.ts +22 -0
- package/templates/craft/.nuxt/nuxt-graphql-middleware/server-options.d.ts +11 -0
- package/templates/craft/.nuxt/nuxt-graphql-middleware/server-options.js +5 -0
- package/templates/craft/.nuxt/nuxt-graphql-middleware/sources.d.ts +4 -0
- package/templates/craft/.nuxt/nuxt-graphql-middleware/sources.js +9 -0
- package/templates/craft/.nuxt/nuxt-multi-cache/config.d.ts +57 -0
- package/templates/craft/.nuxt/nuxt-multi-cache/config.js +10 -0
- package/templates/craft/.nuxt/nuxt-multi-cache/nitro.d.ts +46 -0
- package/templates/craft/.nuxt/nuxt-multi-cache/server-options.d.ts +3 -0
- package/templates/craft/.nuxt/nuxt-multi-cache/server-options.js +2 -0
- package/templates/craft/.nuxt/nuxt.d.ts +59 -0
- package/templates/craft/.nuxt/nuxt.node.d.ts +29 -0
- package/templates/craft/.nuxt/nuxt.shared.d.ts +8 -0
- package/templates/craft/.nuxt/schema/nuxt.schema.d.ts +17 -0
- package/templates/craft/.nuxt/schema/nuxt.schema.json +3 -0
- package/templates/craft/.nuxt/tsconfig.app.json +461 -0
- package/templates/craft/.nuxt/tsconfig.json +471 -0
- package/templates/craft/.nuxt/tsconfig.node.json +245 -0
- package/templates/craft/.nuxt/tsconfig.server.json +336 -0
- package/templates/craft/.nuxt/tsconfig.shared.json +267 -0
- package/templates/craft/.nuxt/types/app.config.d.ts +39 -0
- package/templates/craft/.nuxt/types/build.d.ts +60 -0
- package/templates/craft/.nuxt/types/builder-env.d.ts +1 -0
- package/templates/craft/.nuxt/types/components.d.ts +217 -0
- package/templates/craft/.nuxt/types/i18n-plugin.d.ts +133 -0
- package/templates/craft/.nuxt/types/imports.d.ts +1132 -0
- package/templates/craft/.nuxt/types/layouts.d.ts +20 -0
- package/templates/craft/.nuxt/types/middleware.d.ts +7 -0
- package/templates/craft/.nuxt/types/modules.d.ts +589 -0
- package/templates/craft/.nuxt/types/nitro-config.d.ts +14 -0
- package/templates/craft/.nuxt/types/nitro-imports.d.ts +222 -0
- package/templates/craft/.nuxt/types/nitro-layouts.d.ts +17 -0
- package/templates/craft/.nuxt/types/nitro-middleware.d.ts +11 -0
- package/templates/craft/.nuxt/types/nitro-nuxt.d.ts +90 -0
- package/templates/craft/.nuxt/types/nitro-routes.d.ts +59 -0
- package/templates/craft/.nuxt/types/nitro.d.ts +3 -0
- package/templates/craft/.nuxt/types/nuxt-robots-nitro.d.ts +65 -0
- package/templates/craft/.nuxt/types/nuxt-robots-nuxt.d.ts +10 -0
- package/templates/craft/.nuxt/types/nuxt-scripts-augments.d.ts +15 -0
- package/templates/craft/.nuxt/types/nuxt-sitemap-augments.d.ts +61 -0
- package/templates/craft/.nuxt/types/nuxt-sitemap-virtual.d.ts +23 -0
- package/templates/craft/.nuxt/types/plugins.d.ts +61 -0
- package/templates/craft/.nuxt/types/runtime-config.d.ts +236 -0
- package/templates/craft/.nuxt/types/shared-app.config.d.ts +32 -0
- package/templates/craft/.nuxt/types/shared-imports.d.ts +10 -0
- package/templates/craft/.nuxt/types/vue-shim.d.ts +0 -0
- package/templates/craft/.vscode/extensions.json +7 -0
- package/templates/craft/.vscode/launch.json +15 -0
- package/templates/craft/.vscode/settings.json +73 -0
- package/templates/craft/.vscode/unocss.json +25 -0
- package/templates/craft/Dockerfile +37 -0
- package/templates/craft/README.md +75 -0
- package/templates/craft/_gitignore +24 -0
- package/templates/craft/app/app.vue +11 -0
- package/templates/craft/app/components/.gitkeep +0 -0
- package/templates/craft/app/components/LocaleSwitcher.vue +14 -0
- package/templates/craft/app/pages/[slug].vue +23 -0
- package/templates/craft/app/pages/index.vue +29 -0
- package/templates/craft/app/plugins/gsap-reduced-motion.client.ts +11 -0
- package/templates/craft/app/plugins/org-schema.server.ts +15 -0
- package/templates/craft/app/plugins/site-config.server.ts +17 -0
- package/templates/craft/eslint.config.js +73 -0
- package/templates/craft/graphql.config.ts +4 -0
- package/templates/craft/i18n/index.ts +6 -0
- package/templates/craft/i18n/locales/en.ts +3 -0
- package/templates/craft/i18n/locales/index.ts +17 -0
- package/templates/craft/i18n/locales/it.ts +3 -0
- package/templates/craft/i18n.config.ts +9 -0
- package/templates/craft/node_modules/.bin/acorn +43 -0
- package/templates/craft/node_modules/.bin/browserslist +43 -0
- package/templates/craft/node_modules/.bin/esbuild +34 -0
- package/templates/craft/node_modules/.bin/eslint +43 -0
- package/templates/craft/node_modules/.bin/eslint-config +43 -0
- package/templates/craft/node_modules/.bin/jiti +43 -0
- package/templates/craft/node_modules/.bin/nuxi +43 -0
- package/templates/craft/node_modules/.bin/nuxt +43 -0
- package/templates/craft/node_modules/.bin/rolldown +43 -0
- package/templates/craft/node_modules/.bin/rollup +43 -0
- package/templates/craft/node_modules/.bin/rollup-plugin-visualizer +43 -0
- package/templates/craft/node_modules/.bin/terser +43 -0
- package/templates/craft/node_modules/.bin/tsc +43 -0
- package/templates/craft/node_modules/.bin/vite +43 -0
- package/templates/craft/node_modules/.bin/webpack +43 -0
- package/templates/craft/node_modules/.bin/yaml +43 -0
- package/templates/craft/node_modules/.cache/jiti/craft-nuxt.config.96899b85.mjs +39 -0
- package/templates/craft/node_modules/.cache/jiti/i18n-index.2e90cf09.mjs +6 -0
- package/templates/craft/node_modules/.cache/jiti/i18n-index.a093f66a.mjs +6 -0
- package/templates/craft/node_modules/.cache/jiti/layer-base-nuxt.config.5fd074c8.mjs +75 -0
- package/templates/craft/node_modules/.cache/jiti/layer-craft-nuxt.config.c163264b.mjs +36 -0
- package/templates/craft/node_modules/.cache/jiti/layer-craft-parse-env.a47fc157.mjs +23 -0
- package/templates/craft/node_modules/.cache/jiti/locales-index.3d828a7c.mjs +16 -0
- package/templates/craft/node_modules/.cache/jiti/locales-index.c7376a42.mjs +16 -0
- package/templates/craft/node_modules/.cache/jiti/modules-og-image-detect.3072b6e2.mjs +25 -0
- package/templates/craft/node_modules/.cache/jiti/modules-og-image-detect.e32906d8.mjs +25 -0
- package/templates/craft/node_modules/.cache/jiti/starter-craft-nuxt.config.573fb392.mjs +39 -0
- package/templates/craft/node_modules/.cache/nuxt/chrome-workspace.json +1 -0
- package/templates/craft/nuxt.config.ts +39 -0
- package/templates/craft/package.json +26 -0
- package/templates/craft/public/_robots.txt +2 -0
- package/templates/craft/public/favicon.ico +0 -0
- package/templates/craft/public/og-image.jpg +0 -0
- package/templates/craft/queries/Entries.gql +35 -0
- package/templates/craft/queries/Entry.gql +22 -0
- package/templates/craft/queries/OrgSchema.gql +21 -0
- package/templates/craft/queries/Page.gql +6 -0
- package/templates/craft/queries/SiteConfig.gql +6 -0
- package/templates/craft/queries/fragments/Interfaces.gql +25 -0
- package/templates/craft/queries/fragments/Media.gql +11 -0
- package/templates/craft/queries/fragments/OrgSchemaField.gql +3 -0
- package/templates/craft/queries/fragments/SEO.gql +27 -0
- package/templates/craft/schema.graphql +12283 -0
- package/templates/craft/tsconfig.json +18 -0
- package/templates/craft/uno.config.ts +15 -0
- package/templates/strapi/.env +7 -0
- package/templates/strapi/.env.example +6 -0
- package/templates/strapi/.nuxt/app.config.mjs +25 -0
- package/templates/strapi/.nuxt/components.d.ts +216 -0
- package/templates/strapi/.nuxt/eslint.config.d.mts +9 -0
- package/templates/strapi/.nuxt/eslint.config.mjs +77 -0
- package/templates/strapi/.nuxt/fetch.d.ts +1 -0
- package/templates/strapi/.nuxt/graphql-operations/index.d.ts +315 -0
- package/templates/strapi/.nuxt/graphql-operations/index.js +31 -0
- package/templates/strapi/.nuxt/i18n-route-resources.mjs +5 -0
- package/templates/strapi/.nuxt/image/providers.d.ts +53 -0
- package/templates/strapi/.nuxt/imports.d.ts +126 -0
- package/templates/strapi/.nuxt/link-checker/routes.json +1 -0
- package/templates/strapi/.nuxt/manifest/meta/7053ffc6-a484-4262-9af2-d3139913c2af.json +1 -0
- package/templates/strapi/.nuxt/module/nuxt-schema-org.d.ts +14 -0
- package/templates/strapi/.nuxt/module/nuxt-seo-utils.assets.d.ts +25 -0
- package/templates/strapi/.nuxt/module/nuxt-seo-utils.d.ts +36 -0
- package/templates/strapi/.nuxt/module/nuxt-site-config.d.ts +46 -0
- package/templates/strapi/.nuxt/nuxt-graphql-middleware/client-options.d.ts +7 -0
- package/templates/strapi/.nuxt/nuxt-graphql-middleware/client-options.js +4 -0
- package/templates/strapi/.nuxt/nuxt-graphql-middleware/config.d.ts +7 -0
- package/templates/strapi/.nuxt/nuxt-graphql-middleware/config.js +7 -0
- package/templates/strapi/.nuxt/nuxt-graphql-middleware/documents.d.ts +12 -0
- package/templates/strapi/.nuxt/nuxt-graphql-middleware/graphql.config.d.ts +10 -0
- package/templates/strapi/.nuxt/nuxt-graphql-middleware/graphql.config.js +21 -0
- package/templates/strapi/.nuxt/nuxt-graphql-middleware/helpers.d.ts +5 -0
- package/templates/strapi/.nuxt/nuxt-graphql-middleware/helpers.js +7 -0
- package/templates/strapi/.nuxt/nuxt-graphql-middleware/hook-documents.graphql +0 -0
- package/templates/strapi/.nuxt/nuxt-graphql-middleware/hook-files.d.ts +4 -0
- package/templates/strapi/.nuxt/nuxt-graphql-middleware/hook-files.js +4 -0
- package/templates/strapi/.nuxt/nuxt-graphql-middleware/mcp.d.ts +15 -0
- package/templates/strapi/.nuxt/nuxt-graphql-middleware/mcp.js +74 -0
- package/templates/strapi/.nuxt/nuxt-graphql-middleware/nitro.d.ts +19 -0
- package/templates/strapi/.nuxt/nuxt-graphql-middleware/operation-hashes.d.ts +6 -0
- package/templates/strapi/.nuxt/nuxt-graphql-middleware/operation-types.d.ts +32 -0
- package/templates/strapi/.nuxt/nuxt-graphql-middleware/operation-types.js +4 -0
- package/templates/strapi/.nuxt/nuxt-graphql-middleware/operation-variables.d.ts +4 -0
- package/templates/strapi/.nuxt/nuxt-graphql-middleware/operation-variables.js +12 -0
- package/templates/strapi/.nuxt/nuxt-graphql-middleware/response.d.ts +18 -0
- package/templates/strapi/.nuxt/nuxt-graphql-middleware/server-options.d.ts +8 -0
- package/templates/strapi/.nuxt/nuxt-graphql-middleware/server-options.js +5 -0
- package/templates/strapi/.nuxt/nuxt-graphql-middleware/sources.d.ts +4 -0
- package/templates/strapi/.nuxt/nuxt-graphql-middleware/sources.js +7 -0
- package/templates/strapi/.nuxt/nuxt-multi-cache/config.d.ts +57 -0
- package/templates/strapi/.nuxt/nuxt-multi-cache/config.js +10 -0
- package/templates/strapi/.nuxt/nuxt-multi-cache/nitro.d.ts +46 -0
- package/templates/strapi/.nuxt/nuxt-multi-cache/server-options.d.ts +3 -0
- package/templates/strapi/.nuxt/nuxt-multi-cache/server-options.js +2 -0
- package/templates/strapi/.nuxt/nuxt.d.ts +58 -0
- package/templates/strapi/.nuxt/nuxt.node.d.ts +28 -0
- package/templates/strapi/.nuxt/nuxt.shared.d.ts +8 -0
- package/templates/strapi/.nuxt/schema/nuxt.schema.d.ts +17 -0
- package/templates/strapi/.nuxt/schema/nuxt.schema.json +3 -0
- package/templates/strapi/.nuxt/tsconfig.app.json +456 -0
- package/templates/strapi/.nuxt/tsconfig.json +466 -0
- package/templates/strapi/.nuxt/tsconfig.node.json +243 -0
- package/templates/strapi/.nuxt/tsconfig.server.json +334 -0
- package/templates/strapi/.nuxt/tsconfig.shared.json +267 -0
- package/templates/strapi/.nuxt/types/app.config.d.ts +39 -0
- package/templates/strapi/.nuxt/types/build.d.ts +60 -0
- package/templates/strapi/.nuxt/types/builder-env.d.ts +1 -0
- package/templates/strapi/.nuxt/types/components.d.ts +221 -0
- package/templates/strapi/.nuxt/types/i18n-plugin.d.ts +133 -0
- package/templates/strapi/.nuxt/types/imports.d.ts +1120 -0
- package/templates/strapi/.nuxt/types/layouts.d.ts +20 -0
- package/templates/strapi/.nuxt/types/middleware.d.ts +7 -0
- package/templates/strapi/.nuxt/types/modules.d.ts +569 -0
- package/templates/strapi/.nuxt/types/nitro-config.d.ts +14 -0
- package/templates/strapi/.nuxt/types/nitro-imports.d.ts +220 -0
- package/templates/strapi/.nuxt/types/nitro-layouts.d.ts +17 -0
- package/templates/strapi/.nuxt/types/nitro-middleware.d.ts +11 -0
- package/templates/strapi/.nuxt/types/nitro-nuxt.d.ts +90 -0
- package/templates/strapi/.nuxt/types/nitro-routes.d.ts +44 -0
- package/templates/strapi/.nuxt/types/nitro.d.ts +3 -0
- package/templates/strapi/.nuxt/types/nuxt-robots-nitro.d.ts +65 -0
- package/templates/strapi/.nuxt/types/nuxt-robots-nuxt.d.ts +10 -0
- package/templates/strapi/.nuxt/types/nuxt-scripts-augments.d.ts +15 -0
- package/templates/strapi/.nuxt/types/nuxt-sitemap-augments.d.ts +61 -0
- package/templates/strapi/.nuxt/types/nuxt-sitemap-virtual.d.ts +23 -0
- package/templates/strapi/.nuxt/types/plugins.d.ts +58 -0
- package/templates/strapi/.nuxt/types/runtime-config.d.ts +244 -0
- package/templates/strapi/.nuxt/types/shared-app.config.d.ts +32 -0
- package/templates/strapi/.nuxt/types/shared-imports.d.ts +10 -0
- package/templates/strapi/.nuxt/types/vue-shim.d.ts +0 -0
- package/templates/strapi/README.md +75 -0
- package/templates/strapi/_gitignore +24 -0
- package/templates/strapi/app/app.vue +5 -0
- package/templates/strapi/app/components/DynamicZone.vue +75 -0
- package/templates/strapi/app/components/SectionSingleImage.vue +39 -0
- package/templates/strapi/app/components/VideoProgress.vue +34 -0
- package/templates/strapi/app/pages/[slug].vue +28 -0
- package/templates/strapi/app/pages/index.vue +12 -0
- package/templates/strapi/app/plugins/gsap-reduced-motion.client.ts +11 -0
- package/templates/strapi/app/plugins/site-config.server.ts +17 -0
- package/templates/strapi/eslint.config.js +74 -0
- package/templates/strapi/node_modules/.bin/esbuild +34 -0
- package/templates/strapi/node_modules/.bin/jiti +43 -0
- package/templates/strapi/node_modules/.bin/nuxi +43 -0
- package/templates/strapi/node_modules/.bin/nuxt +43 -0
- package/templates/strapi/node_modules/.bin/rolldown +43 -0
- package/templates/strapi/node_modules/.bin/rollup +43 -0
- package/templates/strapi/node_modules/.bin/rollup-plugin-visualizer +43 -0
- package/templates/strapi/node_modules/.bin/terser +43 -0
- package/templates/strapi/node_modules/.bin/tsc +43 -0
- package/templates/strapi/node_modules/.bin/vite +43 -0
- package/templates/strapi/node_modules/.bin/webpack +43 -0
- package/templates/strapi/node_modules/.bin/yaml +43 -0
- package/templates/strapi/node_modules/.cache/jiti/layer-base-nuxt.config.5fd074c8.mjs +75 -0
- package/templates/strapi/node_modules/.cache/jiti/layer-strapi-nuxt.config.29354bb2.mjs +33 -0
- package/templates/strapi/node_modules/.cache/jiti/layer-strapi-parse-env.46647a07.mjs +23 -0
- package/templates/strapi/node_modules/.cache/jiti/modules-og-image-detect.3072b6e2.mjs +25 -0
- package/templates/strapi/node_modules/.cache/jiti/modules-vue-strapi-blocks-renderer.5518edfe.mjs +22 -0
- package/templates/strapi/node_modules/.cache/jiti/starter-strapi-nuxt.config.b85f8ac6.mjs +15 -0
- package/templates/strapi/node_modules/.cache/jiti/strapi-nuxt.config.5d4f493c.mjs +15 -0
- package/templates/strapi/node_modules/.cache/nuxt/chrome-workspace.json +1 -0
- package/templates/strapi/nuxt.config.ts +15 -0
- package/templates/strapi/package.json +19 -0
- package/templates/strapi/public/_robots.txt +2 -0
- package/templates/strapi/public/favicon.ico +0 -0
- package/templates/strapi/public/og-image.jpg +0 -0
- package/templates/strapi/queries/PageCustomPage.gql +5 -0
- package/templates/strapi/queries/PageHome.gql +15 -0
- package/templates/strapi/queries/fragments/MetaSocial.gql +9 -0
- package/templates/strapi/queries/fragments/PageCustomPage.gql +32 -0
- package/templates/strapi/queries/fragments/SectionError.gql +4 -0
- package/templates/strapi/queries/fragments/SectionSingleImage.gql +7 -0
- package/templates/strapi/queries/fragments/SeoMeta.gql +16 -0
- package/templates/strapi/queries/fragments/StrapiFile.gql +8 -0
- package/templates/strapi/schema.graphql +1091 -0
- package/templates/strapi/tsconfig.json +18 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Nuxt dev/build outputs
|
|
2
|
+
.output
|
|
3
|
+
.data
|
|
4
|
+
.nuxt
|
|
5
|
+
.nitro
|
|
6
|
+
.cache
|
|
7
|
+
dist
|
|
8
|
+
|
|
9
|
+
# Node dependencies
|
|
10
|
+
node_modules
|
|
11
|
+
|
|
12
|
+
# Logs
|
|
13
|
+
logs
|
|
14
|
+
*.log
|
|
15
|
+
|
|
16
|
+
# Misc
|
|
17
|
+
.DS_Store
|
|
18
|
+
.fleet
|
|
19
|
+
.idea
|
|
20
|
+
|
|
21
|
+
# Local env files
|
|
22
|
+
.env
|
|
23
|
+
.env.*
|
|
24
|
+
!.env.example
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
const { locale, locales } = useI18n()
|
|
3
|
+
const switchLocalePath = useSwitchLocalePath()
|
|
4
|
+
|
|
5
|
+
const availableLocales = computed(() => {
|
|
6
|
+
return locales.value.filter(i => i.code !== locale.value)
|
|
7
|
+
})
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<NuxtLink v-for="locale in availableLocales" :key="locale.code" :to="switchLocalePath(locale.code)">
|
|
12
|
+
{{ locale.name }}
|
|
13
|
+
</NuxtLink>
|
|
14
|
+
</template>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { PageEntryFragment } from '#graphql-operations'
|
|
3
|
+
|
|
4
|
+
const route = useRoute()
|
|
5
|
+
|
|
6
|
+
const page = await useCraftEntry<PageEntryFragment>({
|
|
7
|
+
section: ['page'],
|
|
8
|
+
slug: [(route.params.slug) as string],
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
useCraftSEO(page)
|
|
12
|
+
useCraftOrgSchema(page)
|
|
13
|
+
useI18nParams(page)
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<div class="container">
|
|
18
|
+
<h1>Nuxt Craft Example</h1>
|
|
19
|
+
<p>{{ page.title }}</p>
|
|
20
|
+
<p>{{ page.slug }}</p>
|
|
21
|
+
<LocaleSwitcher />
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { EntryInterfaceTypeFragment } from '#graphql-operations'
|
|
3
|
+
|
|
4
|
+
const { locale } = useI18n()
|
|
5
|
+
|
|
6
|
+
const variables = computed(() => ({
|
|
7
|
+
locale: [locale.value],
|
|
8
|
+
section: ['page'],
|
|
9
|
+
}))
|
|
10
|
+
|
|
11
|
+
const { data: pages } = await useAsyncGraphqlQuery('Entries', variables, {
|
|
12
|
+
transform: response => response.data.entries as EntryInterfaceTypeFragment[],
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
useCraftSEO(pages.value?.[0] as EntryInterfaceTypeFragment)
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<div>
|
|
20
|
+
<h1> Starter Craft</h1>
|
|
21
|
+
<ul v-if="pages && pages?.length > 0">
|
|
22
|
+
<li v-for="page in pages" :key="page.id">
|
|
23
|
+
<CraftLink :link="page">
|
|
24
|
+
{{ page.title }}
|
|
25
|
+
</CraftLink>
|
|
26
|
+
</li>
|
|
27
|
+
</ul>
|
|
28
|
+
</div>
|
|
29
|
+
</template>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default defineNuxtPlugin(() => {
|
|
2
|
+
const mm = gsap.matchMedia()
|
|
3
|
+
|
|
4
|
+
mm.add('(prefers-reduced-motion: reduce)', () => {
|
|
5
|
+
// instant-complete all GSAP tweens/timelines
|
|
6
|
+
gsap.globalTimeline.timeScale(1000)
|
|
7
|
+
return () => {
|
|
8
|
+
gsap.globalTimeline.timeScale(1)
|
|
9
|
+
}
|
|
10
|
+
})
|
|
11
|
+
})
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default defineNuxtPlugin({
|
|
2
|
+
name: 'org-schema',
|
|
3
|
+
enforce: 'pre',
|
|
4
|
+
dependsOn: ['nuxt-graphql-middleware-provide-state'],
|
|
5
|
+
async setup() {
|
|
6
|
+
const nuxtApp = useNuxtApp()
|
|
7
|
+
const site = '$i18n' in nuxtApp ? nuxtApp.$i18n?.locale?.value : undefined
|
|
8
|
+
|
|
9
|
+
const { data } = await useGraphqlQuery('OrgSchema', {
|
|
10
|
+
site: site || 'default',
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
useCraftOrgSchemaIdentity(data.orgSchema)
|
|
14
|
+
},
|
|
15
|
+
})
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default defineNuxtPlugin({
|
|
2
|
+
name: 'site-config',
|
|
3
|
+
enforce: 'pre',
|
|
4
|
+
dependsOn: ['nuxt-graphql-middleware-provide-state'],
|
|
5
|
+
async setup() {
|
|
6
|
+
const { data } = await useGraphqlQuery('SiteConfig')
|
|
7
|
+
updateSiteConfig({
|
|
8
|
+
name: data.siteConfig?.siteName,
|
|
9
|
+
url: data.siteConfig?.siteUrl,
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
if (data.siteConfig?.siteUrl) {
|
|
13
|
+
const runtimeConfig = useRuntimeConfig()
|
|
14
|
+
runtimeConfig.public.i18n.baseUrl = data.siteConfig?.siteUrl
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
})
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
import antfu from '@antfu/eslint-config'
|
|
3
|
+
import graphqlPlugin from '@graphql-eslint/eslint-plugin'
|
|
4
|
+
import { globalIgnores } from 'eslint/config'
|
|
5
|
+
import withNuxt from './.nuxt/eslint.config.mjs'
|
|
6
|
+
|
|
7
|
+
// export default withNuxt(
|
|
8
|
+
export default withNuxt(
|
|
9
|
+
// Your custom configs here
|
|
10
|
+
await antfu(
|
|
11
|
+
{
|
|
12
|
+
formatters: true,
|
|
13
|
+
vue: true,
|
|
14
|
+
pnpm: false,
|
|
15
|
+
unocss: true,
|
|
16
|
+
},
|
|
17
|
+
),
|
|
18
|
+
globalIgnores([
|
|
19
|
+
'dist',
|
|
20
|
+
'node_modules',
|
|
21
|
+
'.output',
|
|
22
|
+
'.nuxt',
|
|
23
|
+
'.storybook',
|
|
24
|
+
'storybook-static',
|
|
25
|
+
'.github',
|
|
26
|
+
'coverage',
|
|
27
|
+
'*.log',
|
|
28
|
+
'nuxt.d.ts',
|
|
29
|
+
'.output',
|
|
30
|
+
'.DS_Store',
|
|
31
|
+
'.vscode',
|
|
32
|
+
'*.md',
|
|
33
|
+
'package.json',
|
|
34
|
+
'package-lock.json',
|
|
35
|
+
'babel.config.js',
|
|
36
|
+
'graphql',
|
|
37
|
+
'types.ts',
|
|
38
|
+
'generated',
|
|
39
|
+
'components.d.ts',
|
|
40
|
+
'icons.d.ts',
|
|
41
|
+
'auto.d.ts',
|
|
42
|
+
'src-tauri',
|
|
43
|
+
'auto-imports.d.ts',
|
|
44
|
+
'schema.graphql',
|
|
45
|
+
]),
|
|
46
|
+
{
|
|
47
|
+
rules: {
|
|
48
|
+
'unocss/order': 'error', // or "error",
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
files: ['**/*.graphql', '**/*.gql'],
|
|
53
|
+
languageOptions: {
|
|
54
|
+
parser: graphqlPlugin.parser,
|
|
55
|
+
},
|
|
56
|
+
plugins: {
|
|
57
|
+
'@graphql-eslint': graphqlPlugin,
|
|
58
|
+
},
|
|
59
|
+
rules: {
|
|
60
|
+
'@graphql-eslint/no-anonymous-operations': 'error',
|
|
61
|
+
'@graphql-eslint/naming-convention': [
|
|
62
|
+
'error',
|
|
63
|
+
{
|
|
64
|
+
OperationDefinition: {
|
|
65
|
+
style: 'PascalCase',
|
|
66
|
+
forbiddenPrefixes: ['Query', 'Mutation', 'Subscription', 'Get'],
|
|
67
|
+
forbiddenSuffixes: ['Query', 'Mutation', 'Subscription'],
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
)
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { NuxtI18nOptions } from '@nuxtjs/i18n'
|
|
2
|
+
|
|
3
|
+
import localesConfig from './locales'
|
|
4
|
+
|
|
5
|
+
export const defaultLocale = (localesConfig.find(entry => entry.default)?.code || localesConfig[0]?.code || 'en') as NuxtI18nOptions['defaultLocale']
|
|
6
|
+
export const locales = localesConfig.map(({ code, file, language, name }) => ({ code, file, language, name }))
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { LocaleObject } from '@nuxtjs/i18n'
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
{
|
|
5
|
+
code: 'it',
|
|
6
|
+
language: 'it-IT',
|
|
7
|
+
name: 'Italiano',
|
|
8
|
+
file: 'it.ts',
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
code: 'en',
|
|
12
|
+
language: 'en-GB',
|
|
13
|
+
default: true,
|
|
14
|
+
name: 'English',
|
|
15
|
+
file: 'en.ts',
|
|
16
|
+
},
|
|
17
|
+
] as LocaleObject[]
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
basedir_win="$basedir"
|
|
4
|
+
exe=""
|
|
5
|
+
msys=""
|
|
6
|
+
|
|
7
|
+
case `uname -a` in
|
|
8
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
9
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
10
|
+
basedir_win=`cygpath -w "$basedir"`
|
|
11
|
+
fi
|
|
12
|
+
exe=".exe"
|
|
13
|
+
msys="true"
|
|
14
|
+
;;
|
|
15
|
+
*WSL2*)
|
|
16
|
+
if command -v wslpath > /dev/null 2>&1; then
|
|
17
|
+
basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
|
|
18
|
+
if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
|
|
19
|
+
basedir_win="$basedir"
|
|
20
|
+
else
|
|
21
|
+
exe=".exe"
|
|
22
|
+
fi
|
|
23
|
+
fi
|
|
24
|
+
;;
|
|
25
|
+
esac
|
|
26
|
+
|
|
27
|
+
if [ -z "$NODE_PATH" ]; then
|
|
28
|
+
export NODE_PATH="/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/acorn@8.16.0/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/node_modules"
|
|
29
|
+
else
|
|
30
|
+
export NODE_PATH="/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/acorn@8.16.0/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
31
|
+
fi
|
|
32
|
+
if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
|
|
33
|
+
exec "$basedir/node.exe" "$basedir_win/../../../../node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/bin/acorn" "$@"
|
|
34
|
+
elif [ -x "$basedir/node" ]; then
|
|
35
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/bin/acorn" "$@"
|
|
36
|
+
elif command -v node >/dev/null 2>&1; then
|
|
37
|
+
exec node "$basedir/../../../../node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/bin/acorn" "$@"
|
|
38
|
+
elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
|
|
39
|
+
exec node.exe "$basedir_win/../../../../node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/bin/acorn" "$@"
|
|
40
|
+
else
|
|
41
|
+
exec node "$basedir/../../../../node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/bin/acorn" "$@"
|
|
42
|
+
fi
|
|
43
|
+
# cmd-shim-target=/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/bin/acorn
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
basedir_win="$basedir"
|
|
4
|
+
exe=""
|
|
5
|
+
msys=""
|
|
6
|
+
|
|
7
|
+
case `uname -a` in
|
|
8
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
9
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
10
|
+
basedir_win=`cygpath -w "$basedir"`
|
|
11
|
+
fi
|
|
12
|
+
exe=".exe"
|
|
13
|
+
msys="true"
|
|
14
|
+
;;
|
|
15
|
+
*WSL2*)
|
|
16
|
+
if command -v wslpath > /dev/null 2>&1; then
|
|
17
|
+
basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
|
|
18
|
+
if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
|
|
19
|
+
basedir_win="$basedir"
|
|
20
|
+
else
|
|
21
|
+
exe=".exe"
|
|
22
|
+
fi
|
|
23
|
+
fi
|
|
24
|
+
;;
|
|
25
|
+
esac
|
|
26
|
+
|
|
27
|
+
if [ -z "$NODE_PATH" ]; then
|
|
28
|
+
export NODE_PATH="/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/browserslist@4.28.6/node_modules/browserslist/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/browserslist@4.28.6/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/node_modules"
|
|
29
|
+
else
|
|
30
|
+
export NODE_PATH="/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/browserslist@4.28.6/node_modules/browserslist/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/browserslist@4.28.6/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
31
|
+
fi
|
|
32
|
+
if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
|
|
33
|
+
exec "$basedir/node.exe" "$basedir_win/../../../../node_modules/.pnpm/browserslist@4.28.6/node_modules/browserslist/cli.js" "$@"
|
|
34
|
+
elif [ -x "$basedir/node" ]; then
|
|
35
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/browserslist@4.28.6/node_modules/browserslist/cli.js" "$@"
|
|
36
|
+
elif command -v node >/dev/null 2>&1; then
|
|
37
|
+
exec node "$basedir/../../../../node_modules/.pnpm/browserslist@4.28.6/node_modules/browserslist/cli.js" "$@"
|
|
38
|
+
elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
|
|
39
|
+
exec node.exe "$basedir_win/../../../../node_modules/.pnpm/browserslist@4.28.6/node_modules/browserslist/cli.js" "$@"
|
|
40
|
+
else
|
|
41
|
+
exec node "$basedir/../../../../node_modules/.pnpm/browserslist@4.28.6/node_modules/browserslist/cli.js" "$@"
|
|
42
|
+
fi
|
|
43
|
+
# cmd-shim-target=/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/browserslist@4.28.6/node_modules/browserslist/cli.js
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
basedir_win="$basedir"
|
|
4
|
+
exe=""
|
|
5
|
+
msys=""
|
|
6
|
+
|
|
7
|
+
case `uname -a` in
|
|
8
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
9
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
10
|
+
basedir_win=`cygpath -w "$basedir"`
|
|
11
|
+
fi
|
|
12
|
+
exe=".exe"
|
|
13
|
+
msys="true"
|
|
14
|
+
;;
|
|
15
|
+
*WSL2*)
|
|
16
|
+
if command -v wslpath > /dev/null 2>&1; then
|
|
17
|
+
basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
|
|
18
|
+
if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
|
|
19
|
+
basedir_win="$basedir"
|
|
20
|
+
else
|
|
21
|
+
exe=".exe"
|
|
22
|
+
fi
|
|
23
|
+
fi
|
|
24
|
+
;;
|
|
25
|
+
esac
|
|
26
|
+
|
|
27
|
+
if [ -z "$NODE_PATH" ]; then
|
|
28
|
+
export NODE_PATH="/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/esbuild@0.28.1/node_modules/esbuild/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/esbuild@0.28.1/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/node_modules"
|
|
29
|
+
else
|
|
30
|
+
export NODE_PATH="/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/esbuild@0.28.1/node_modules/esbuild/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/esbuild@0.28.1/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
31
|
+
fi
|
|
32
|
+
exec "$basedir/../../../../node_modules/.pnpm/esbuild@0.28.1/node_modules/esbuild/bin/esbuild" "$@"
|
|
33
|
+
exit $?
|
|
34
|
+
# cmd-shim-target=/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/esbuild@0.28.1/node_modules/esbuild/bin/esbuild
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
basedir_win="$basedir"
|
|
4
|
+
exe=""
|
|
5
|
+
msys=""
|
|
6
|
+
|
|
7
|
+
case `uname -a` in
|
|
8
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
9
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
10
|
+
basedir_win=`cygpath -w "$basedir"`
|
|
11
|
+
fi
|
|
12
|
+
exe=".exe"
|
|
13
|
+
msys="true"
|
|
14
|
+
;;
|
|
15
|
+
*WSL2*)
|
|
16
|
+
if command -v wslpath > /dev/null 2>&1; then
|
|
17
|
+
basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
|
|
18
|
+
if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
|
|
19
|
+
basedir_win="$basedir"
|
|
20
|
+
else
|
|
21
|
+
exe=".exe"
|
|
22
|
+
fi
|
|
23
|
+
fi
|
|
24
|
+
;;
|
|
25
|
+
esac
|
|
26
|
+
|
|
27
|
+
if [ -z "$NODE_PATH" ]; then
|
|
28
|
+
export NODE_PATH="/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/eslint@10.8.0_jiti@2.7.0_supports-color@10.2.2/node_modules/eslint/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/eslint@10.8.0_jiti@2.7.0_supports-color@10.2.2/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/node_modules"
|
|
29
|
+
else
|
|
30
|
+
export NODE_PATH="/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/eslint@10.8.0_jiti@2.7.0_supports-color@10.2.2/node_modules/eslint/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/eslint@10.8.0_jiti@2.7.0_supports-color@10.2.2/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
31
|
+
fi
|
|
32
|
+
if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
|
|
33
|
+
exec "$basedir/node.exe" "$basedir_win/../eslint/bin/eslint.js" "$@"
|
|
34
|
+
elif [ -x "$basedir/node" ]; then
|
|
35
|
+
exec "$basedir/node" "$basedir/../eslint/bin/eslint.js" "$@"
|
|
36
|
+
elif command -v node >/dev/null 2>&1; then
|
|
37
|
+
exec node "$basedir/../eslint/bin/eslint.js" "$@"
|
|
38
|
+
elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
|
|
39
|
+
exec node.exe "$basedir_win/../eslint/bin/eslint.js" "$@"
|
|
40
|
+
else
|
|
41
|
+
exec node "$basedir/../eslint/bin/eslint.js" "$@"
|
|
42
|
+
fi
|
|
43
|
+
# cmd-shim-target=/Users/plcdnl/DEV/fes/nuxt-layers/packages/create-app/templates/craft/node_modules/eslint/bin/eslint.js
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
basedir_win="$basedir"
|
|
4
|
+
exe=""
|
|
5
|
+
msys=""
|
|
6
|
+
|
|
7
|
+
case `uname -a` in
|
|
8
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
9
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
10
|
+
basedir_win=`cygpath -w "$basedir"`
|
|
11
|
+
fi
|
|
12
|
+
exe=".exe"
|
|
13
|
+
msys="true"
|
|
14
|
+
;;
|
|
15
|
+
*WSL2*)
|
|
16
|
+
if command -v wslpath > /dev/null 2>&1; then
|
|
17
|
+
basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
|
|
18
|
+
if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
|
|
19
|
+
basedir_win="$basedir"
|
|
20
|
+
else
|
|
21
|
+
exe=".exe"
|
|
22
|
+
fi
|
|
23
|
+
fi
|
|
24
|
+
;;
|
|
25
|
+
esac
|
|
26
|
+
|
|
27
|
+
if [ -z "$NODE_PATH" ]; then
|
|
28
|
+
export NODE_PATH="/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/@antfu+eslint-config@9.2.0_@typescript-eslint+typescript-estree@8.65.0_supports-color@1_5a8dd7b96734f80fb6d20ac9fc534dcb/node_modules/@antfu/eslint-config/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/@antfu+eslint-config@9.2.0_@typescript-eslint+typescript-estree@8.65.0_supports-color@1_5a8dd7b96734f80fb6d20ac9fc534dcb/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/node_modules"
|
|
29
|
+
else
|
|
30
|
+
export NODE_PATH="/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/@antfu+eslint-config@9.2.0_@typescript-eslint+typescript-estree@8.65.0_supports-color@1_5a8dd7b96734f80fb6d20ac9fc534dcb/node_modules/@antfu/eslint-config/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/@antfu+eslint-config@9.2.0_@typescript-eslint+typescript-estree@8.65.0_supports-color@1_5a8dd7b96734f80fb6d20ac9fc534dcb/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
31
|
+
fi
|
|
32
|
+
if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
|
|
33
|
+
exec "$basedir/node.exe" "$basedir_win/../@antfu/eslint-config/bin/index.mjs" "$@"
|
|
34
|
+
elif [ -x "$basedir/node" ]; then
|
|
35
|
+
exec "$basedir/node" "$basedir/../@antfu/eslint-config/bin/index.mjs" "$@"
|
|
36
|
+
elif command -v node >/dev/null 2>&1; then
|
|
37
|
+
exec node "$basedir/../@antfu/eslint-config/bin/index.mjs" "$@"
|
|
38
|
+
elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
|
|
39
|
+
exec node.exe "$basedir_win/../@antfu/eslint-config/bin/index.mjs" "$@"
|
|
40
|
+
else
|
|
41
|
+
exec node "$basedir/../@antfu/eslint-config/bin/index.mjs" "$@"
|
|
42
|
+
fi
|
|
43
|
+
# cmd-shim-target=/Users/plcdnl/DEV/fes/nuxt-layers/packages/create-app/templates/craft/node_modules/@antfu/eslint-config/bin/index.mjs
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
basedir_win="$basedir"
|
|
4
|
+
exe=""
|
|
5
|
+
msys=""
|
|
6
|
+
|
|
7
|
+
case `uname -a` in
|
|
8
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
9
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
10
|
+
basedir_win=`cygpath -w "$basedir"`
|
|
11
|
+
fi
|
|
12
|
+
exe=".exe"
|
|
13
|
+
msys="true"
|
|
14
|
+
;;
|
|
15
|
+
*WSL2*)
|
|
16
|
+
if command -v wslpath > /dev/null 2>&1; then
|
|
17
|
+
basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
|
|
18
|
+
if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
|
|
19
|
+
basedir_win="$basedir"
|
|
20
|
+
else
|
|
21
|
+
exe=".exe"
|
|
22
|
+
fi
|
|
23
|
+
fi
|
|
24
|
+
;;
|
|
25
|
+
esac
|
|
26
|
+
|
|
27
|
+
if [ -z "$NODE_PATH" ]; then
|
|
28
|
+
export NODE_PATH="/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/jiti@2.7.0/node_modules/jiti/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/jiti@2.7.0/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/node_modules"
|
|
29
|
+
else
|
|
30
|
+
export NODE_PATH="/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/jiti@2.7.0/node_modules/jiti/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/jiti@2.7.0/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
31
|
+
fi
|
|
32
|
+
if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
|
|
33
|
+
exec "$basedir/node.exe" "$basedir_win/../../../../node_modules/.pnpm/jiti@2.7.0/node_modules/jiti/lib/jiti-cli.mjs" "$@"
|
|
34
|
+
elif [ -x "$basedir/node" ]; then
|
|
35
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/jiti@2.7.0/node_modules/jiti/lib/jiti-cli.mjs" "$@"
|
|
36
|
+
elif command -v node >/dev/null 2>&1; then
|
|
37
|
+
exec node "$basedir/../../../../node_modules/.pnpm/jiti@2.7.0/node_modules/jiti/lib/jiti-cli.mjs" "$@"
|
|
38
|
+
elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
|
|
39
|
+
exec node.exe "$basedir_win/../../../../node_modules/.pnpm/jiti@2.7.0/node_modules/jiti/lib/jiti-cli.mjs" "$@"
|
|
40
|
+
else
|
|
41
|
+
exec node "$basedir/../../../../node_modules/.pnpm/jiti@2.7.0/node_modules/jiti/lib/jiti-cli.mjs" "$@"
|
|
42
|
+
fi
|
|
43
|
+
# cmd-shim-target=/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/jiti@2.7.0/node_modules/jiti/lib/jiti-cli.mjs
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
basedir_win="$basedir"
|
|
4
|
+
exe=""
|
|
5
|
+
msys=""
|
|
6
|
+
|
|
7
|
+
case `uname -a` in
|
|
8
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
9
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
10
|
+
basedir_win=`cygpath -w "$basedir"`
|
|
11
|
+
fi
|
|
12
|
+
exe=".exe"
|
|
13
|
+
msys="true"
|
|
14
|
+
;;
|
|
15
|
+
*WSL2*)
|
|
16
|
+
if command -v wslpath > /dev/null 2>&1; then
|
|
17
|
+
basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
|
|
18
|
+
if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
|
|
19
|
+
basedir_win="$basedir"
|
|
20
|
+
else
|
|
21
|
+
exe=".exe"
|
|
22
|
+
fi
|
|
23
|
+
fi
|
|
24
|
+
;;
|
|
25
|
+
esac
|
|
26
|
+
|
|
27
|
+
if [ -z "$NODE_PATH" ]; then
|
|
28
|
+
export NODE_PATH="/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/nuxt@4.5.1_@babel+plugin-syntax-jsx@7.28.6_@babel+core@7.29.0_supports-color@10.2.2___@_80ac92716983a647c2a82f7fc49eb61a/node_modules/nuxt/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/nuxt@4.5.1_@babel+plugin-syntax-jsx@7.28.6_@babel+core@7.29.0_supports-color@10.2.2___@_80ac92716983a647c2a82f7fc49eb61a/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/node_modules"
|
|
29
|
+
else
|
|
30
|
+
export NODE_PATH="/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/nuxt@4.5.1_@babel+plugin-syntax-jsx@7.28.6_@babel+core@7.29.0_supports-color@10.2.2___@_80ac92716983a647c2a82f7fc49eb61a/node_modules/nuxt/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/nuxt@4.5.1_@babel+plugin-syntax-jsx@7.28.6_@babel+core@7.29.0_supports-color@10.2.2___@_80ac92716983a647c2a82f7fc49eb61a/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
31
|
+
fi
|
|
32
|
+
if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
|
|
33
|
+
exec "$basedir/node.exe" "$basedir_win/../nuxt/bin/nuxt.mjs" "$@"
|
|
34
|
+
elif [ -x "$basedir/node" ]; then
|
|
35
|
+
exec "$basedir/node" "$basedir/../nuxt/bin/nuxt.mjs" "$@"
|
|
36
|
+
elif command -v node >/dev/null 2>&1; then
|
|
37
|
+
exec node "$basedir/../nuxt/bin/nuxt.mjs" "$@"
|
|
38
|
+
elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
|
|
39
|
+
exec node.exe "$basedir_win/../nuxt/bin/nuxt.mjs" "$@"
|
|
40
|
+
else
|
|
41
|
+
exec node "$basedir/../nuxt/bin/nuxt.mjs" "$@"
|
|
42
|
+
fi
|
|
43
|
+
# cmd-shim-target=/Users/plcdnl/DEV/fes/nuxt-layers/packages/create-app/templates/craft/node_modules/nuxt/bin/nuxt.mjs
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
basedir_win="$basedir"
|
|
4
|
+
exe=""
|
|
5
|
+
msys=""
|
|
6
|
+
|
|
7
|
+
case `uname -a` in
|
|
8
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
9
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
10
|
+
basedir_win=`cygpath -w "$basedir"`
|
|
11
|
+
fi
|
|
12
|
+
exe=".exe"
|
|
13
|
+
msys="true"
|
|
14
|
+
;;
|
|
15
|
+
*WSL2*)
|
|
16
|
+
if command -v wslpath > /dev/null 2>&1; then
|
|
17
|
+
basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
|
|
18
|
+
if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
|
|
19
|
+
basedir_win="$basedir"
|
|
20
|
+
else
|
|
21
|
+
exe=".exe"
|
|
22
|
+
fi
|
|
23
|
+
fi
|
|
24
|
+
;;
|
|
25
|
+
esac
|
|
26
|
+
|
|
27
|
+
if [ -z "$NODE_PATH" ]; then
|
|
28
|
+
export NODE_PATH="/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/nuxt@4.5.1_@babel+plugin-syntax-jsx@7.28.6_@babel+core@7.29.0_supports-color@10.2.2___@_80ac92716983a647c2a82f7fc49eb61a/node_modules/nuxt/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/nuxt@4.5.1_@babel+plugin-syntax-jsx@7.28.6_@babel+core@7.29.0_supports-color@10.2.2___@_80ac92716983a647c2a82f7fc49eb61a/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/node_modules"
|
|
29
|
+
else
|
|
30
|
+
export NODE_PATH="/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/nuxt@4.5.1_@babel+plugin-syntax-jsx@7.28.6_@babel+core@7.29.0_supports-color@10.2.2___@_80ac92716983a647c2a82f7fc49eb61a/node_modules/nuxt/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/nuxt@4.5.1_@babel+plugin-syntax-jsx@7.28.6_@babel+core@7.29.0_supports-color@10.2.2___@_80ac92716983a647c2a82f7fc49eb61a/node_modules:/Users/plcdnl/DEV/fes/nuxt-layers/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
31
|
+
fi
|
|
32
|
+
if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
|
|
33
|
+
exec "$basedir/node.exe" "$basedir_win/../nuxt/bin/nuxt.mjs" "$@"
|
|
34
|
+
elif [ -x "$basedir/node" ]; then
|
|
35
|
+
exec "$basedir/node" "$basedir/../nuxt/bin/nuxt.mjs" "$@"
|
|
36
|
+
elif command -v node >/dev/null 2>&1; then
|
|
37
|
+
exec node "$basedir/../nuxt/bin/nuxt.mjs" "$@"
|
|
38
|
+
elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
|
|
39
|
+
exec node.exe "$basedir_win/../nuxt/bin/nuxt.mjs" "$@"
|
|
40
|
+
else
|
|
41
|
+
exec node "$basedir/../nuxt/bin/nuxt.mjs" "$@"
|
|
42
|
+
fi
|
|
43
|
+
# cmd-shim-target=/Users/plcdnl/DEV/fes/nuxt-layers/packages/create-app/templates/craft/node_modules/nuxt/bin/nuxt.mjs
|