Do not run yarn production post-install

This commit is contained in:
Phan An 2019-08-29 09:42:50 +02:00
parent 1eb51ec9e2
commit 3edd800b4d
3 changed files with 3 additions and 2 deletions

View file

@ -17,7 +17,8 @@ branches:
install:
- composer self-update
- composer install --prefer-dist --no-interaction
- cd resources/assets && yarn && cd ../.. && yarn
- cd resources/assets && yarn
- cd ../.. && yarn && yarn production
script:
# Backend

View file

@ -246,6 +246,7 @@ class InitCommand extends Command
chdir('../..');
$this->info('└── Compiling assets');
system('yarn');
system('yarn production');
}
/** @return array<string> */

View file

@ -28,7 +28,6 @@
"webpack-node-externals": "^1.6.0"
},
"scripts": {
"postinstall": "yarn production",
"dev": "yarn development",
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",