Skip to content

Commit

Permalink
[Chore][Angular] gitignores for angular and proxies (#1934)
Browse files Browse the repository at this point in the history
* gitignores for angular and proxies

* changelog, upgrade
  • Loading branch information
art-alexeyenko authored Sep 24, 2024
1 parent 0e2e4f8 commit 881196c
Show file tree
Hide file tree
Showing 7 changed files with 88 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ Our versioning strategy is as follows:

### 🧹 Chores

* `[templates/angular]``[templates/node-xmcloud-proxy]``[templates/node-headless-ssr-proxy]``[templates/node-headless-ssr-experience-edge]` Adjust out of box .gitignore rules

## 22.1.3

### 🐛 Bug Fixes
Expand Down
8 changes: 8 additions & 0 deletions docs/upgrades/unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@
...
}
```
* In root folder .gitingore, add the rule for `.angular` if not already present
* Replace the contents of `src/environments/.gitingore` with the following, if not done so already:
```
*
!.gitignore
```
# Angular - XMCloud
Expand Down Expand Up @@ -278,3 +284,5 @@ If you plan to use the Angular SDK with XMCloud, you will need to perform next s
Now `middleware`, `ProxyConfig`, `ServerBundle` properties are available on the "headlessProxy" object.
* `express` dependency is marked as a peer dependency, so you need to match the required version "^4.19.2".
* Copy the `.gitignore` file from fresh latest version proxy app into your existing proxy app, if not already present.
5 changes: 5 additions & 0 deletions packages/create-sitecore-jss/src/templates/angular/gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,15 @@ scjssconfig.json
/dist-server
/tmp
/out-tsc
/.angular

# dependencies
/node_modules

# local env files
.env.local
.env.*.local

# IDEs and editors
/.idea
.project
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.ts
*
!.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# local env files
.env.local
.env.*.local

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# System Files
.DS_Store
Thumbs.db
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# local env files
.env.local
.env.*.local

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# System Files
.DS_Store
Thumbs.db
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist

# dependencies
/node_modules

# local env files
.env.local
.env.*.local

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# misc
/connect.lock
/libpeerconnection.log
npm-debug.log
testem.log
/typings

# System Files
.DS_Store
Thumbs.db

# deploy platforms
.vercel
.netlify

0 comments on commit 881196c

Please sign in to comment.