generator-jhipster-sentry-module 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/generators/app/index.js
CHANGED
|
@@ -120,10 +120,20 @@ module.exports = class extends Generator {
|
|
|
120
120
|
|
|
121
121
|
// Frontend templates
|
|
122
122
|
if (this.clientFramework === 'react') {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
123
|
+
this.fs.copyTpl(
|
|
124
|
+
this.templatePath('client/react/sentry.ts.ejs'),
|
|
125
|
+
`${webappDir}app/sentry.ts`,
|
|
126
|
+
{
|
|
127
|
+
sentryDsn: this.promptAnswers.sentryDsn
|
|
128
|
+
}
|
|
129
|
+
); } else if (this.clientFramework === 'angularX') {
|
|
130
|
+
this.fs.copyTpl(
|
|
131
|
+
this.templatePath('client/react/sentry.ts.ejs'),
|
|
132
|
+
`${webappDir}app/sentry.ts`,
|
|
133
|
+
{
|
|
134
|
+
sentryDsn: this.promptAnswers.sentryDsn
|
|
135
|
+
}
|
|
136
|
+
); }
|
|
127
137
|
}
|
|
128
138
|
|
|
129
139
|
install() {
|