From 488a14545626b616def040eeaedd5b8543fc2d22 Mon Sep 17 00:00:00 2001 From: Erika <3019731+Princesseuh@users.noreply.github.com> Date: Wed, 12 Jan 2022 16:37:16 +0100 Subject: [PATCH] Normalize and cleanup examples projects (#2364) * Remove unused line in the examples .gitignore * Add missing .npmrc, .stackblitzrc and tsconfig.json files to a few examples * Removed unused file and link directive in the minimal example * Oops, added an accidental slash --- examples/blog-multiple-authors/.gitignore | 1 - examples/blog/.gitignore | 1 - examples/component/.gitignore | 1 - examples/docs/.gitignore | 1 - examples/framework-alpine/.gitignore | 1 - examples/framework-lit/.gitignore | 1 - examples/framework-lit/.npmrc | 2 ++ examples/framework-multiple/.gitignore | 1 - examples/framework-preact/.gitignore | 1 - examples/framework-react/.gitignore | 1 - examples/framework-solid/.gitignore | 1 - examples/framework-solid/tsconfig.json | 5 +++++ examples/framework-svelte/.gitignore | 1 - examples/framework-vue/.gitignore | 1 - examples/minimal/.gitignore | 1 - examples/minimal/public/robots.txt | 2 -- examples/minimal/src/pages/index.astro | 1 - examples/minimal/tsconfig.json | 5 +++++ examples/portfolio-svelte/.gitignore | 1 - examples/portfolio/.gitignore | 1 - examples/starter/.gitignore | 1 - examples/subpath/.gitignore | 17 +++++++++++++++++ examples/subpath/.npmrc | 2 ++ examples/subpath/.stackblitzrc | 6 ++++++ examples/subpath/tsconfig.json | 5 +++++ examples/with-markdown-plugins/.gitignore | 1 - examples/with-markdown/.gitignore | 1 - examples/with-nanostores/.gitignore | 1 - examples/with-tailwindcss/.gitignore | 1 - examples/with-vite-plugin-pwa/.gitignore | 1 - 30 files changed, 42 insertions(+), 24 deletions(-) create mode 100644 examples/framework-lit/.npmrc create mode 100644 examples/framework-solid/tsconfig.json delete mode 100644 examples/minimal/public/robots.txt create mode 100644 examples/minimal/tsconfig.json create mode 100644 examples/subpath/.gitignore create mode 100644 examples/subpath/.npmrc create mode 100644 examples/subpath/.stackblitzrc create mode 100644 examples/subpath/tsconfig.json diff --git a/examples/blog-multiple-authors/.gitignore b/examples/blog-multiple-authors/.gitignore index d436c6dad..c82467453 100644 --- a/examples/blog-multiple-authors/.gitignore +++ b/examples/blog-multiple-authors/.gitignore @@ -3,7 +3,6 @@ dist # dependencies node_modules/ -.snowpack/ # logs npm-debug.log* diff --git a/examples/blog/.gitignore b/examples/blog/.gitignore index d436c6dad..c82467453 100644 --- a/examples/blog/.gitignore +++ b/examples/blog/.gitignore @@ -3,7 +3,6 @@ dist # dependencies node_modules/ -.snowpack/ # logs npm-debug.log* diff --git a/examples/component/.gitignore b/examples/component/.gitignore index d436c6dad..c82467453 100644 --- a/examples/component/.gitignore +++ b/examples/component/.gitignore @@ -3,7 +3,6 @@ dist # dependencies node_modules/ -.snowpack/ # logs npm-debug.log* diff --git a/examples/docs/.gitignore b/examples/docs/.gitignore index d436c6dad..c82467453 100644 --- a/examples/docs/.gitignore +++ b/examples/docs/.gitignore @@ -3,7 +3,6 @@ dist # dependencies node_modules/ -.snowpack/ # logs npm-debug.log* diff --git a/examples/framework-alpine/.gitignore b/examples/framework-alpine/.gitignore index d436c6dad..c82467453 100644 --- a/examples/framework-alpine/.gitignore +++ b/examples/framework-alpine/.gitignore @@ -3,7 +3,6 @@ dist # dependencies node_modules/ -.snowpack/ # logs npm-debug.log* diff --git a/examples/framework-lit/.gitignore b/examples/framework-lit/.gitignore index d436c6dad..c82467453 100644 --- a/examples/framework-lit/.gitignore +++ b/examples/framework-lit/.gitignore @@ -3,7 +3,6 @@ dist # dependencies node_modules/ -.snowpack/ # logs npm-debug.log* diff --git a/examples/framework-lit/.npmrc b/examples/framework-lit/.npmrc new file mode 100644 index 000000000..0cc653b2c --- /dev/null +++ b/examples/framework-lit/.npmrc @@ -0,0 +1,2 @@ +## force pnpm to hoist +shamefully-hoist = true \ No newline at end of file diff --git a/examples/framework-multiple/.gitignore b/examples/framework-multiple/.gitignore index d436c6dad..c82467453 100644 --- a/examples/framework-multiple/.gitignore +++ b/examples/framework-multiple/.gitignore @@ -3,7 +3,6 @@ dist # dependencies node_modules/ -.snowpack/ # logs npm-debug.log* diff --git a/examples/framework-preact/.gitignore b/examples/framework-preact/.gitignore index d436c6dad..c82467453 100644 --- a/examples/framework-preact/.gitignore +++ b/examples/framework-preact/.gitignore @@ -3,7 +3,6 @@ dist # dependencies node_modules/ -.snowpack/ # logs npm-debug.log* diff --git a/examples/framework-react/.gitignore b/examples/framework-react/.gitignore index d436c6dad..c82467453 100644 --- a/examples/framework-react/.gitignore +++ b/examples/framework-react/.gitignore @@ -3,7 +3,6 @@ dist # dependencies node_modules/ -.snowpack/ # logs npm-debug.log* diff --git a/examples/framework-solid/.gitignore b/examples/framework-solid/.gitignore index d436c6dad..c82467453 100644 --- a/examples/framework-solid/.gitignore +++ b/examples/framework-solid/.gitignore @@ -3,7 +3,6 @@ dist # dependencies node_modules/ -.snowpack/ # logs npm-debug.log* diff --git a/examples/framework-solid/tsconfig.json b/examples/framework-solid/tsconfig.json new file mode 100644 index 000000000..8e881cf9c --- /dev/null +++ b/examples/framework-solid/tsconfig.json @@ -0,0 +1,5 @@ +{ + "compilerOptions": { + "moduleResolution": "node" + } +} diff --git a/examples/framework-svelte/.gitignore b/examples/framework-svelte/.gitignore index d436c6dad..c82467453 100644 --- a/examples/framework-svelte/.gitignore +++ b/examples/framework-svelte/.gitignore @@ -3,7 +3,6 @@ dist # dependencies node_modules/ -.snowpack/ # logs npm-debug.log* diff --git a/examples/framework-vue/.gitignore b/examples/framework-vue/.gitignore index d436c6dad..c82467453 100644 --- a/examples/framework-vue/.gitignore +++ b/examples/framework-vue/.gitignore @@ -3,7 +3,6 @@ dist # dependencies node_modules/ -.snowpack/ # logs npm-debug.log* diff --git a/examples/minimal/.gitignore b/examples/minimal/.gitignore index d436c6dad..c82467453 100644 --- a/examples/minimal/.gitignore +++ b/examples/minimal/.gitignore @@ -3,7 +3,6 @@ dist # dependencies node_modules/ -.snowpack/ # logs npm-debug.log* diff --git a/examples/minimal/public/robots.txt b/examples/minimal/public/robots.txt deleted file mode 100644 index 1f53798bb..000000000 --- a/examples/minimal/public/robots.txt +++ /dev/null @@ -1,2 +0,0 @@ -User-agent: * -Disallow: / diff --git a/examples/minimal/src/pages/index.astro b/examples/minimal/src/pages/index.astro index e1e7a987b..55a5aac89 100644 --- a/examples/minimal/src/pages/index.astro +++ b/examples/minimal/src/pages/index.astro @@ -5,7 +5,6 @@ - Welcome to Astro