-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ui): add giraffe and clockface sourcemaps to honeybadger config (…
- Loading branch information
1 parent
984f64d
commit 0df21e2
Showing
1 changed file
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
#!/bin/sh | ||
|
||
FILE=`ls build/*.js.map | tail -n 1 | tr -d "\n"` | ||
MIN_FILE=`ls build/*.js | tail -n 1 | tr -d "\n"` | ||
INFLUX_MINIFIED_FILE=`ls build/*.js | tail -n 1 | tr -d "\n"` | ||
INFLUX_SOURCEMAP=`ls build/*.js.map | tail -n 1 | tr -d "\n"` | ||
|
||
CLOCKFACE_SOURCEMAP=node_modules/@influxdata/clockface/dist/index.js.map | ||
GIRAFFE_SOURCEMAP=node_modules/@influxdata/giraffe/dist/index.js.map | ||
|
||
GIT_SHA=$(git rev-parse HEAD) | ||
|
||
curl https://api.honeybadger.io/v1/source_maps \ | ||
-F api_key=$HONEYBADGER_KEY \ | ||
-F revision=$GIT_SHA \ | ||
-F minified_url="*" \ | ||
-F source_map=@$FILE \ | ||
-F minified_file=@$MIN_FILE | ||
-F minified_file=@$INFLUX_MINIFIED_FILE \ | ||
-F source_map=@$INFLUX_SOURCEMAP \ | ||
-F *=@$CLOCKFACE_SOURCEMAP \ | ||
-F *=@$GIRAFFE_SOURCEMAP |