Skip to content

Commit 6a203b7

Browse files
authored
docs: add .gitignore to stackblitz template (#33847)
Adds a `.gitignore` file to the Stackblitz template to prevent `dist` files from showing up for users. Fixes #33836.
1 parent 508b45a commit 6a203b7

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎docs/src/app/shared/example-viewer/example-viewer.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
</div>
4141
} @else {
4242
<div class="docs-example-viewer-title">
43-
<p>{{exampleData?.title}}</p>
43+
{{exampleData?.title}}
4444

4545
<div class="docs-example-viewer-actions">
4646
<button

‎docs/src/app/shared/stackblitz/stackblitz-writer.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ export const TEMPLATE_FILES = [
4545
'tsconfig.app.json',
4646
'tsconfig.json',
4747
'tsconfig.spec.json',
48+
// We need a gitignore, because harness tests generate files in `dist`
49+
// which can prevent users from forking the example (see 33836).
50+
'.gitignore',
4851
'src/index.html',
4952
'src/main.ts',
5053
'src/styles.css',
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist

0 commit comments

Comments
 (0)