Skip to content

Commit

Permalink
Do not run yarn production post-install
Browse files Browse the repository at this point in the history
  • Loading branch information
phanan committed Aug 29, 2019
1 parent 1eb51ec commit 3edd800
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions app/Console/Commands/InitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ private function compileFrontEndAssets(): void
chdir('../..');
$this->info('└── Compiling assets');
system('yarn');
system('yarn production');
}

/** @return array<string> */
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 3edd800

Please sign in to comment.