From 351382ec3b3162ad73a5f27515946d108e186be1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=B6=E8=BF=9C=E6=96=B9?= Date: Wed, 30 Aug 2023 20:19:59 +0800 Subject: [PATCH 1/4] chore(sfc-playground): ignore the `tsconfig.json` file when downloading --- packages/sfc-playground/src/download/download.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/sfc-playground/src/download/download.ts b/packages/sfc-playground/src/download/download.ts index eb534538bf2..029171867f4 100644 --- a/packages/sfc-playground/src/download/download.ts +++ b/packages/sfc-playground/src/download/download.ts @@ -27,6 +27,7 @@ export async function downloadProject(store: ReplStore) { const files = store.getFiles() for (const file in files) { + if (file === 'tsconfig.json') continue if (file !== 'import-map.json') { src.file(file, files[file]) } else { From 97d1322a20a02b3f2f8c462d424f4f57854353e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=B6=E8=BF=9C=E6=96=B9?= Date: Wed, 30 Aug 2023 20:31:18 +0800 Subject: [PATCH 2/4] chore(sfc-playground): update nodejs version restrictions --- packages/sfc-playground/src/download/template/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sfc-playground/src/download/template/README.md b/packages/sfc-playground/src/download/template/README.md index 39c47d255ae..563db88b0e8 100644 --- a/packages/sfc-playground/src/download/template/README.md +++ b/packages/sfc-playground/src/download/template/README.md @@ -1,6 +1,6 @@ # Vite Vue Starter -This is a project template using [Vite](https://vitejs.dev/). It requires [Node.js](https://nodejs.org) v12+. +This is a project template using [Vite](https://vitejs.dev/). It requires [Node.js](https://nodejs.org) version 14.18+, 16+. To start: From e3cf1268e4b36d5388cc9d0e9948f8c880914612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=B6=E8=BF=9C=E6=96=B9?= Date: Thu, 31 Aug 2023 15:54:03 +0800 Subject: [PATCH 3/4] chore: save tsconfig.json to root directory --- packages/sfc-playground/src/download/download.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/sfc-playground/src/download/download.ts b/packages/sfc-playground/src/download/download.ts index 029171867f4..5c4e238501e 100644 --- a/packages/sfc-playground/src/download/download.ts +++ b/packages/sfc-playground/src/download/download.ts @@ -27,8 +27,7 @@ export async function downloadProject(store: ReplStore) { const files = store.getFiles() for (const file in files) { - if (file === 'tsconfig.json') continue - if (file !== 'import-map.json') { + if (file !== 'import-map.json' && file !== 'tsconfig.json') { src.file(file, files[file]) } else { zip.file(file, files[file]) From f55ca2bc3e308d189b309060db6080a641cf4ad1 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Tue, 12 Mar 2024 21:43:27 +0800 Subject: [PATCH 4/4] docs: update Node.js requirements as the template now uses Vite 5 --- packages/sfc-playground/src/download/template/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sfc-playground/src/download/template/README.md b/packages/sfc-playground/src/download/template/README.md index 563db88b0e8..9c43370cb8a 100644 --- a/packages/sfc-playground/src/download/template/README.md +++ b/packages/sfc-playground/src/download/template/README.md @@ -1,6 +1,6 @@ # Vite Vue Starter -This is a project template using [Vite](https://vitejs.dev/). It requires [Node.js](https://nodejs.org) version 14.18+, 16+. +This is a project template using [Vite](https://vitejs.dev/). It requires [Node.js](https://nodejs.org) version 18+, 20+. To start: