generator-razor 14.0.49 → 14.0.51
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 +33 -0
- package/package.json +1 -1
package/app/index.js
CHANGED
|
@@ -597,6 +597,39 @@ export default class extends Generator {
|
|
|
597
597
|
)
|
|
598
598
|
}
|
|
599
599
|
|
|
600
|
+
/*
|
|
601
|
+
* Install razor Composer dependencies.
|
|
602
|
+
*
|
|
603
|
+
* InstallService copied composer.json and composer.lock to the
|
|
604
|
+
* project root. Composer is configured to install them directly
|
|
605
|
+
* into vendor-razor.
|
|
606
|
+
*/
|
|
607
|
+
this.log(orange(
|
|
608
|
+
'→ Installing razor PHP dependencies...'
|
|
609
|
+
))
|
|
610
|
+
|
|
611
|
+
await this._runCommand(
|
|
612
|
+
'composer',
|
|
613
|
+
[
|
|
614
|
+
'install',
|
|
615
|
+
'--prefer-dist',
|
|
616
|
+
'--no-interaction',
|
|
617
|
+
'--no-progress',
|
|
618
|
+
'--optimize-autoloader'
|
|
619
|
+
]
|
|
620
|
+
)
|
|
621
|
+
|
|
622
|
+
const razorAutoloadFile = this.destinationPath(
|
|
623
|
+
'vendor-razor/autoload.php'
|
|
624
|
+
)
|
|
625
|
+
|
|
626
|
+
if (!await fs.pathExists(razorAutoloadFile)) {
|
|
627
|
+
throw new Error(
|
|
628
|
+
'razor Composer dependencies were installed, but ' +
|
|
629
|
+
'vendor-razor/autoload.php was not created.'
|
|
630
|
+
)
|
|
631
|
+
}
|
|
632
|
+
|
|
600
633
|
/*
|
|
601
634
|
* Remove temporary helper extensions.
|
|
602
635
|
*/
|