generator-razor 14.0.3 → 14.0.5

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 +15 -21
  2. package/package.json +1 -1
package/app/index.js CHANGED
@@ -83,16 +83,7 @@ export default class extends Generator {
83
83
  type: 'input',
84
84
  name: 'DbPort',
85
85
  message: 'Database port?',
86
- store: true,
87
- validate: value => {
88
- const port = Number(value)
89
-
90
- if (Number.isInteger(port) && port >= 1 && port <= 65535) {
91
- return true
92
- }
93
-
94
- return 'Enter a valid TCP port.'
95
- }
86
+ store: true
96
87
  }, {
97
88
  type: 'select',
98
89
  name: 'DbSocket',
@@ -396,6 +387,11 @@ export default class extends Generator {
396
387
  }
397
388
  }
398
389
 
390
+ await this._setFileGroup(
391
+ this.destinationPath('typo3conf/PackageStates.php'),
392
+ 'developers'
393
+ )
394
+
399
395
  const orange = chalk.hex('#ff8700').bold
400
396
  const petrol = chalk.hex('#006792')
401
397
 
@@ -640,28 +636,26 @@ export default class extends Generator {
640
636
  }
641
637
 
642
638
  async _createSymlinks (sourcePath) {
639
+ const typo3SrcLink = this.destinationPath('typo3_src')
640
+
643
641
  const links = [{
644
- source: sourcePath,
645
- destination: this.destinationPath('typo3_src'),
642
+ source: path.relative(
643
+ this.destinationRoot(),
644
+ sourcePath
645
+ ),
646
+ destination: typo3SrcLink,
646
647
  type: 'dir'
647
648
  }, {
648
- source: path.join(sourcePath, 'typo3'),
649
+ source: 'typo3_src/typo3',
649
650
  destination: this.destinationPath('typo3'),
650
651
  type: 'dir'
651
652
  }, {
652
- source: path.join(sourcePath, 'index.php'),
653
+ source: 'typo3_src/index.php',
653
654
  destination: this.destinationPath('index.php'),
654
655
  type: 'file'
655
656
  }]
656
657
 
657
658
  for (const link of links) {
658
- if (!await fs.pathExists(link.source)) {
659
- throw new Error(
660
- 'Cannot create symlink because the source does not exist: ' +
661
- link.source
662
- )
663
- }
664
-
665
659
  await fs.remove(link.destination)
666
660
 
667
661
  await fs.ensureSymlink(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-razor",
3
- "version": "14.0.3",
3
+ "version": "14.0.5",
4
4
  "description": "Yeoman generator for razor TYPO3 distribution",
5
5
  "license": "MIT",
6
6
  "main": "app/index.js",