generator-razor 14.0.43 → 14.0.44
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/app/index.js +16 -10
- package/package.json +1 -1
package/app/index.js
CHANGED
|
@@ -606,16 +606,6 @@ export default class extends Generator {
|
|
|
606
606
|
)
|
|
607
607
|
}
|
|
608
608
|
|
|
609
|
-
/*
|
|
610
|
-
* Hand over to the Razor installer.
|
|
611
|
-
*/
|
|
612
|
-
this.log('→ Starting razor installer...')
|
|
613
|
-
|
|
614
|
-
await this._runCommand(
|
|
615
|
-
'bash',
|
|
616
|
-
['./razor.sh']
|
|
617
|
-
)
|
|
618
|
-
|
|
619
609
|
const orange = chalk.ansi256(208)
|
|
620
610
|
const petrol = chalk.ansi256(24)
|
|
621
611
|
|
|
@@ -631,6 +621,16 @@ export default class extends Generator {
|
|
|
631
621
|
this.log(petrol(
|
|
632
622
|
` ${this.props.ProjectName} was generated successfully.\n`
|
|
633
623
|
))
|
|
624
|
+
|
|
625
|
+
/*
|
|
626
|
+
* Hand over to the Razor installer.
|
|
627
|
+
*/
|
|
628
|
+
this.log('→ Starting razor installer...')
|
|
629
|
+
|
|
630
|
+
await this._runCommand(
|
|
631
|
+
'bash',
|
|
632
|
+
['./razor.sh']
|
|
633
|
+
)
|
|
634
634
|
}
|
|
635
635
|
|
|
636
636
|
async _fixProjectGroup () {
|
|
@@ -1163,8 +1163,14 @@ export default class extends Generator {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
|
|
1165
1165
|
async _setRazorConfig () {
|
|
1166
|
+
const devDomain = process.env.DEV_DOMAIN ?? ''
|
|
1167
|
+
const projectName = path.basename(this.destinationRoot())
|
|
1168
|
+
|
|
1166
1169
|
const config = {
|
|
1167
1170
|
siteName: this.props.ProjectName,
|
|
1171
|
+
localDomain: devDomain
|
|
1172
|
+
? `${projectName}.${devDomain}`
|
|
1173
|
+
: '',
|
|
1168
1174
|
user: this.props.User,
|
|
1169
1175
|
adminEmail: this.props.AdminEmail,
|
|
1170
1176
|
english: this.props.English,
|