Skip to content

Commit 8cf8f07

Browse files
committed
Run composer install last, to see if the .pot file generates properly
1 parent a7f46d5 commit 8cf8f07

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.scripts/setup.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,6 @@ public function __construct() {
155155
exec( 'git init' );
156156
exec( 'git branch -m main' );
157157

158-
echo PHP_EOL . 'Setting up Composer...' . PHP_EOL;
159-
160-
$this->copyFile( "{$path}/.templates/composer.json", "{$path}/composer.json" );
161-
$this->delete( "{$path}/vendor" );
162-
$this->delete( "{$path}/composer.lock" );
163-
exec( 'composer install' );
164-
165158
echo PHP_EOL . 'Setting up NPM...' . PHP_EOL;
166159

167160
$this->copyFile( "{$path}/.nvmrc", "{$path}/.nvmrc" );
@@ -170,6 +163,13 @@ public function __construct() {
170163
$this->delete( "{$path}/package-lock.json" );
171164
exec( 'npm install' );
172165

166+
echo PHP_EOL . 'Setting up Composer...' . PHP_EOL;
167+
168+
$this->copyFile( "{$path}/.templates/composer.json", "{$path}/composer.json" );
169+
$this->delete( "{$path}/vendor" );
170+
$this->delete( "{$path}/composer.lock" );
171+
exec( 'composer install' );
172+
173173
echo PHP_EOL . 'Cleaning up...' . PHP_EOL;
174174

175175
$this->delete( "{$path}/.templates" );

0 commit comments

Comments
 (0)