File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 return which ('yarn ' );
1919});
2020
21- // In there is a {{previous_release}}, node_modules will be copied from it before installing deps with yarn.
2221desc ('Installs Yarn packages ' );
2322task ('yarn:install ' , function () {
24- if (has ('previous_release ' )) {
25- if (test ('[ -d {{previous_release}}/node_modules ] ' )) {
26- run ('cp -R {{previous_release}}/node_modules {{release_path}} ' );
27- }
28- }
2923 run ('cd {{release_path}} && {{bin/yarn}} ' );
3024});
3125
Original file line number Diff line number Diff line change @@ -42,15 +42,15 @@ return which('yarn');
4242## Tasks
4343
4444### yarn\: install {#yarn-install}
45- [ Source] ( https://github.com/deployphp/deployer/blob/master/contrib/yarn.php#L23 )
45+ [ Source] ( https://github.com/deployphp/deployer/blob/master/contrib/yarn.php#L22 )
4646
4747Installs Yarn packages.
4848
49- In there is a {{previous_release}}, node_modules will be copied from it before installing deps with yarn.
49+
5050
5151
5252### yarn\: build {#yarn-build}
53- [ Source] ( https://github.com/deployphp/deployer/blob/master/contrib/yarn.php#L33 )
53+ [ Source] ( https://github.com/deployphp/deployer/blob/master/contrib/yarn.php#L27 )
5454
5555Runs Yarn build.
5656
You can’t perform that action at this time.
0 commit comments