diff --git a/packages/1-try/2-nuxtConfig/README.md b/packages/1-try/2-nuxtConfig/README.md deleted file mode 100644 index fa00c26..0000000 --- a/packages/1-try/2-nuxtConfig/README.md +++ /dev/null @@ -1,42 +0,0 @@ -# Nuxt 3 Minimal Starter - -Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more. - -## Setup - -Make sure to install the dependencies: - -```bash -# yarn -yarn install - -# npm -npm install - -# pnpm -pnpm install -``` - -## Development Server - -Start the development server on `http://localhost:3000` - -```bash -npm run dev -``` - -## Production - -Build the application for production: - -```bash -npm run build -``` - -Locally preview production build: - -```bash -npm run preview -``` - -Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information. diff --git a/packages/1-try/2-nuxtConfig/app.vue b/packages/1-try/2-nuxtConfig/app.vue deleted file mode 100644 index a495b75..0000000 --- a/packages/1-try/2-nuxtConfig/app.vue +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/packages/1-try/2-nuxtConfig/nuxt.config.ts b/packages/1-try/2-nuxtConfig/nuxt.config.ts deleted file mode 100644 index 5e7d9c6..0000000 --- a/packages/1-try/2-nuxtConfig/nuxt.config.ts +++ /dev/null @@ -1,4 +0,0 @@ -// https://nuxt.com/docs/api/configuration/nuxt-config -export default defineNuxtConfig({ - -}) diff --git a/packages/1-try/2-nuxtConfig/.gitignore b/packages/2-nuxtConfig/.gitignore similarity index 100% rename from packages/1-try/2-nuxtConfig/.gitignore rename to packages/2-nuxtConfig/.gitignore diff --git a/packages/1-try/2-nuxtConfig/.npmrc b/packages/2-nuxtConfig/.npmrc similarity index 100% rename from packages/1-try/2-nuxtConfig/.npmrc rename to packages/2-nuxtConfig/.npmrc diff --git a/packages/2-nuxtConfig/README.md b/packages/2-nuxtConfig/README.md new file mode 100644 index 0000000..06de5eb --- /dev/null +++ b/packages/2-nuxtConfig/README.md @@ -0,0 +1,3 @@ +# Nuxt Config + + diff --git a/packages/2-nuxtConfig/app.vue b/packages/2-nuxtConfig/app.vue new file mode 100644 index 0000000..1287811 --- /dev/null +++ b/packages/2-nuxtConfig/app.vue @@ -0,0 +1,11 @@ + + diff --git a/packages/2-nuxtConfig/nuxt.config.ts b/packages/2-nuxtConfig/nuxt.config.ts new file mode 100644 index 0000000..db6a552 --- /dev/null +++ b/packages/2-nuxtConfig/nuxt.config.ts @@ -0,0 +1,9 @@ +// https://nuxt.com/docs/api/configuration/nuxt-config +export default defineNuxtConfig({ + runtimeConfig: { + public: { + token: "123", + footer: "copyright2023" + }, + }, +}) diff --git a/packages/1-try/2-nuxtConfig/package.json b/packages/2-nuxtConfig/package.json similarity index 100% rename from packages/1-try/2-nuxtConfig/package.json rename to packages/2-nuxtConfig/package.json diff --git a/packages/1-try/2-nuxtConfig/public/favicon.ico b/packages/2-nuxtConfig/public/favicon.ico similarity index 100% rename from packages/1-try/2-nuxtConfig/public/favicon.ico rename to packages/2-nuxtConfig/public/favicon.ico diff --git a/packages/1-try/2-nuxtConfig/tsconfig.json b/packages/2-nuxtConfig/tsconfig.json similarity index 100% rename from packages/1-try/2-nuxtConfig/tsconfig.json rename to packages/2-nuxtConfig/tsconfig.json diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f57c403..506dec9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -21,6 +21,15 @@ importers: specifier: ^3.4.3 version: 3.4.3(@types/node@18.0.0) + packages/2-nuxtConfig: + devDependencies: + '@types/node': + specifier: ^18 + version: 18.0.0 + nuxt: + specifier: ^3.4.3 + version: 3.4.3(@types/node@18.0.0) + packages: /@ampproject/remapping@2.2.1: