diff options
author | 2022-01-12 16:37:16 +0100 | |
---|---|---|
committer | 2022-01-12 10:37:16 -0500 | |
commit | 488a14545626b616def040eeaedd5b8543fc2d22 (patch) | |
tree | 294eb4b1637a7cd38bfeb0224fa3f82fe3a4b19e /examples/subpath | |
parent | deac867e176f0dad7cc1a324173aa813eb55b601 (diff) | |
download | astro-488a14545626b616def040eeaedd5b8543fc2d22.tar.gz astro-488a14545626b616def040eeaedd5b8543fc2d22.tar.zst astro-488a14545626b616def040eeaedd5b8543fc2d22.zip |
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
Diffstat (limited to 'examples/subpath')
-rw-r--r-- | examples/subpath/.gitignore | 17 | ||||
-rw-r--r-- | examples/subpath/.npmrc | 2 | ||||
-rw-r--r-- | examples/subpath/.stackblitzrc | 6 | ||||
-rw-r--r-- | examples/subpath/tsconfig.json | 5 |
4 files changed, 30 insertions, 0 deletions
diff --git a/examples/subpath/.gitignore b/examples/subpath/.gitignore new file mode 100644 index 000000000..c82467453 --- /dev/null +++ b/examples/subpath/.gitignore @@ -0,0 +1,17 @@ +# build output +dist + +# dependencies +node_modules/ + +# logs +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# environment variables +.env +.env.production + +# macOS-specific files +.DS_Store diff --git a/examples/subpath/.npmrc b/examples/subpath/.npmrc new file mode 100644 index 000000000..0cc653b2c --- /dev/null +++ b/examples/subpath/.npmrc @@ -0,0 +1,2 @@ +## force pnpm to hoist +shamefully-hoist = true
\ No newline at end of file diff --git a/examples/subpath/.stackblitzrc b/examples/subpath/.stackblitzrc new file mode 100644 index 000000000..43798ecff --- /dev/null +++ b/examples/subpath/.stackblitzrc @@ -0,0 +1,6 @@ +{ + "startCommand": "npm start", + "env": { + "ENABLE_CJS_IMPORTS": true + } +}
\ No newline at end of file diff --git a/examples/subpath/tsconfig.json b/examples/subpath/tsconfig.json new file mode 100644 index 000000000..8e881cf9c --- /dev/null +++ b/examples/subpath/tsconfig.json @@ -0,0 +1,5 @@ +{ + "compilerOptions": { + "moduleResolution": "node" + } +} |