generator-razor 14.0.17 → 14.0.18

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 +23 -8
  2. package/package.json +1 -1
package/app/index.js CHANGED
@@ -305,6 +305,17 @@ export default class extends Generator {
305
305
  value: 12
306
306
  }],
307
307
  store: true
308
+ }, {
309
+ type: 'select',
310
+ name: 'Picture',
311
+ message: 'Download TYPO3 picture extension?',
312
+ choices: [{
313
+ name: 'No',
314
+ value: false
315
+ }, {
316
+ name: 'Yes',
317
+ value: true
318
+ }]
308
319
  }]
309
320
 
310
321
  this.props = await this.prompt(prompts)
@@ -351,14 +362,19 @@ export default class extends Generator {
351
362
  async install () {
352
363
  const branch = this._getRazorBranch()
353
364
 
354
- const razorPackage =
365
+ const packages = [
355
366
  `ssh://git@github.com/rafu1987/razor.git#${branch}`
367
+ ]
356
368
 
357
- const picturePackage = await this._getLatestGithubReleasePackage(
358
- 'b13',
359
- 'picture',
360
- 'picture'
361
- )
369
+ if (this.props.Picture) {
370
+ const picturePackage = await this._getLatestGithubReleasePackage(
371
+ 'b13',
372
+ 'picture',
373
+ 'picture'
374
+ )
375
+
376
+ packages.push(picturePackage)
377
+ }
362
378
 
363
379
  await this._runCommand('yarn', [
364
380
  'add',
@@ -366,8 +382,7 @@ export default class extends Generator {
366
382
  '--no-lockfile',
367
383
  '--modules-folder',
368
384
  'typo3conf/ext/',
369
- razorPackage,
370
- picturePackage
385
+ ...packages
371
386
  ])
372
387
  }
373
388
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-razor",
3
- "version": "14.0.17",
3
+ "version": "14.0.18",
4
4
  "description": "Yeoman generator for razor TYPO3 distribution",
5
5
  "license": "MIT",
6
6
  "main": "app/index.js",