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
This commit is contained in:
Erika 2022-01-12 16:37:16 +01:00 committed by GitHub
parent deac867e17
commit 488a145456
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 42 additions and 24 deletions

View file

@ -3,7 +3,6 @@ dist
# dependencies
node_modules/
.snowpack/
# logs
npm-debug.log*

View file

@ -3,7 +3,6 @@ dist
# dependencies
node_modules/
.snowpack/
# logs
npm-debug.log*

View file

@ -3,7 +3,6 @@ dist
# dependencies
node_modules/
.snowpack/
# logs
npm-debug.log*

View file

@ -3,7 +3,6 @@ dist
# dependencies
node_modules/
.snowpack/
# logs
npm-debug.log*

View file

@ -3,7 +3,6 @@ dist
# dependencies
node_modules/
.snowpack/
# logs
npm-debug.log*

View file

@ -3,7 +3,6 @@ dist
# dependencies
node_modules/
.snowpack/
# logs
npm-debug.log*

View file

@ -0,0 +1,2 @@
## force pnpm to hoist
shamefully-hoist = true

View file

@ -3,7 +3,6 @@ dist
# dependencies
node_modules/
.snowpack/
# logs
npm-debug.log*

View file

@ -3,7 +3,6 @@ dist
# dependencies
node_modules/
.snowpack/
# logs
npm-debug.log*

View file

@ -3,7 +3,6 @@ dist
# dependencies
node_modules/
.snowpack/
# logs
npm-debug.log*

View file

@ -3,7 +3,6 @@ dist
# dependencies
node_modules/
.snowpack/
# logs
npm-debug.log*

View file

@ -0,0 +1,5 @@
{
"compilerOptions": {
"moduleResolution": "node"
}
}

View file

@ -3,7 +3,6 @@ dist
# dependencies
node_modules/
.snowpack/
# logs
npm-debug.log*

View file

@ -3,7 +3,6 @@ dist
# dependencies
node_modules/
.snowpack/
# logs
npm-debug.log*

View file

@ -3,7 +3,6 @@ dist
# dependencies
node_modules/
.snowpack/
# logs
npm-debug.log*

View file

@ -1,2 +0,0 @@
User-agent: *
Disallow: /

View file

@ -5,7 +5,6 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width" />
<title>Welcome to Astro</title>
<style>

View file

@ -0,0 +1,5 @@
{
"compilerOptions": {
"moduleResolution": "node"
}
}

View file

@ -3,7 +3,6 @@ dist
# dependencies
node_modules/
.snowpack/
# logs
npm-debug.log*

View file

@ -3,7 +3,6 @@ dist
# dependencies
node_modules/
.snowpack/
# logs
npm-debug.log*

View file

@ -3,7 +3,6 @@ dist
# dependencies
node_modules/
.snowpack/
# logs
npm-debug.log*

17
examples/subpath/.gitignore vendored Normal file
View file

@ -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

2
examples/subpath/.npmrc Normal file
View file

@ -0,0 +1,2 @@
## force pnpm to hoist
shamefully-hoist = true

View file

@ -0,0 +1,6 @@
{
"startCommand": "npm start",
"env": {
"ENABLE_CJS_IMPORTS": true
}
}

View file

@ -0,0 +1,5 @@
{
"compilerOptions": {
"moduleResolution": "node"
}
}

View file

@ -3,7 +3,6 @@ dist
# dependencies
node_modules/
.snowpack/
# logs
npm-debug.log*

View file

@ -3,7 +3,6 @@ dist
# dependencies
node_modules/
.snowpack/
# logs
npm-debug.log*

View file

@ -3,7 +3,6 @@ dist
# dependencies
node_modules/
.snowpack/
# logs
npm-debug.log*

View file

@ -3,7 +3,6 @@ dist
# dependencies
node_modules/
.snowpack/
# logs
npm-debug.log*

View file

@ -3,7 +3,6 @@ dist
# dependencies
node_modules/
.snowpack/
# logs
npm-debug.log*