From 0011a96892fb95026756bad364b07e7a78d4506b Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 19 Jun 2023 12:05:19 +0200 Subject: [PATCH] chore: add playground --- package.json | 3 ++- playground/.gitignore | 10 ++++++++++ playground/app.vue | 5 +++++ playground/nuxt.config.ts | 2 ++ playground/package.json | 7 +++++++ playground/tsconfig.json | 4 ++++ 6 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 playground/.gitignore create mode 100644 playground/app.vue create mode 100644 playground/nuxt.config.ts create mode 100644 playground/package.json create mode 100644 playground/tsconfig.json diff --git a/package.json b/package.json index a2711f9c..3d99fe70 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,8 @@ "scripts": { "build": "unbuild", "build:stub": "unbuild --stub", - "dev": "nuxi-ng dev ./playground", + "nuxi-ng": "JITI_ESM_RESOLVE=1 jiti ./src/cli-run.ts", + "dev": "pnpm run nuxi-ng dev ./playground", "lint": "eslint . && prettier --check src", "lint:fix": "eslint --fix . && prettier --write src", "prepack": "unbuild", diff --git a/playground/.gitignore b/playground/.gitignore new file mode 100644 index 00000000..0cfc5ba7 --- /dev/null +++ b/playground/.gitignore @@ -0,0 +1,10 @@ +node_modules +*.log* +.nuxt +.nitro +.cache +.output +.env +dist + +pnpm-lock.yaml diff --git a/playground/app.vue b/playground/app.vue new file mode 100644 index 00000000..0aa44420 --- /dev/null +++ b/playground/app.vue @@ -0,0 +1,5 @@ + diff --git a/playground/nuxt.config.ts b/playground/nuxt.config.ts new file mode 100644 index 00000000..d6bbf8d9 --- /dev/null +++ b/playground/nuxt.config.ts @@ -0,0 +1,2 @@ +// https://nuxt.com/docs/api/configuration/nuxt-config +export default defineNuxtConfig({}) diff --git a/playground/package.json b/playground/package.json new file mode 100644 index 00000000..ee5205e1 --- /dev/null +++ b/playground/package.json @@ -0,0 +1,7 @@ +{ + "name": "nuxt-cli-playground", + "private": true, + "version": "1.0.0", + "devDependencies": { + } +} diff --git a/playground/tsconfig.json b/playground/tsconfig.json new file mode 100644 index 00000000..a746f2a7 --- /dev/null +++ b/playground/tsconfig.json @@ -0,0 +1,4 @@ +{ + // https://nuxt.com/docs/guide/concepts/typescript + "extends": "./.nuxt/tsconfig.json" +}