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.
Files changed (2) hide show
  1. package/app/index.js +16 -10
  2. 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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-razor",
3
- "version": "14.0.43",
3
+ "version": "14.0.44",
4
4
  "description": "Yeoman generator for razor TYPO3 distribution",
5
5
  "license": "MIT",
6
6
  "main": "app/index.js",