Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test #11

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Test #11

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.10.0
14.2.0
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,20 @@

SENTRY_ORG=testorg-az
SENTRY_PROJECT=ng-demo
VERSION=`sentry-cli releases propose-version`
PREFIX=dist
SENTRY_CLI=./node_modules/.bin/sentry-cli
VERSION=`$(SENTRY_CLI) releases propose-version`

setup_release: create_release associate_commits upload_sourcemaps

create_release:
sentry-cli releases -o $(SENTRY_ORG) new -p $(SENTRY_PROJECT) $(VERSION)
$(SENTRY_CLI) releases -o $(SENTRY_ORG) new -p $(SENTRY_PROJECT) $(VERSION)

associate_commits:
sentry-cli releases -o $(SENTRY_ORG) -p $(SENTRY_PROJECT) set-commits --auto $(VERSION)
-$(SENTRY_CLI) releases -o $(SENTRY_ORG) -p $(SENTRY_PROJECT) set-commits --local $(VERSION)

upload_sourcemaps:
sentry-cli releases -o $(SENTRY_ORG) -p $(SENTRY_PROJECT) files \
$(SENTRY_CLI) releases -o $(SENTRY_ORG) -p $(SENTRY_PROJECT) files \
$(VERSION) upload-sourcemaps --url-prefix "~/" --rewrite --validate $(PREFIX)

reference_release:
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ https://docs.sentry.io/platforms/javascript/angular/

The following command is defined in [package.json](https://github.com/sentry-demos/angular/blob/master/package.json#L12-L13) and will build, create release, upload source maps and deploy:

`npm run deploy`
`npm run deploy`

note: predeploy runs as part of deploy where create_env is used

note: a .env file must be made in order to store the relative variable value provided by the Sentry CLI

## GIF
![Alt Text](angular-demo.gif)
30 changes: 17 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,23 @@
},
"private": true,
"dependencies": {
"@angular/common": "^5.2.11",
"@angular/compiler": "^5.2.11",
"@angular/core": "^5.2.11",
"@angular/forms": "^5.2.11",
"@angular/http": "^5.2.11",
"@angular/platform-browser": "^5.2.11",
"@angular/platform-browser-dynamic": "^5.2.11",
"@angular/router": "^5.2.11",
"@sentry/browser": "^4.5.3",
"core-js": "^2.6.3",
"rxjs": "^5.5.12",
"ts-helpers": "^1.1.1",
"zone.js": "^0.8.29"
"@angular/animations": "~10.0.6",
"@angular/common": "~10.0.6",
"@angular/compiler": "~10.0.6",
"@angular/core": "~10.0.6",
"@angular/forms": "~10.0.6",
"@angular/platform-browser": "~10.0.6",
"@angular/platform-browser-dynamic": "~10.0.6",
"@angular/router": "~10.0.6",
"@sentry/browser": "^5.20.1",
"@sentry/cli": "^1.55.1",
"@sentry/webpack-plugin": "^1.12.0",
"colors": "^1.1.2",
"dotenv": "^5.0.0",
"rxjs": "~6.5.5",
"serve": "^11.3.2",
"tslib": "^2.0.0",
"zone.js": "~0.10.3"
},
"devDependencies": {
"@angular/cli": "^1.7.4",
Expand Down