Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 548cf82

Browse filesBrowse files
committed
📚 Merge documentation for npm and yarn
See lorisleiva#52
1 parent aa5ef4b commit 548cf82
Copy full SHA for 548cf82

File tree

Expand file treeCollapse file tree

3 files changed

+9
-29
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+9
-29
lines changed

‎docs/README.md

Copy file name to clipboardExpand all lines: docs/README.md
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ Server setup
2121

2222
Deployment configurations
2323
* [How to deploy a Lumen application?](how-to-lumen.md)
24-
* [How to compile assets on deploy using npm?](how-to-npm.md)
25-
* [How to compile assets on deploy using yarn?](how-to-yarn.md)
24+
* [How to compile assets on deploy using npm (or yarn)?](how-to-npm.md)
2625
* [How to send Slack notifications?](how-to-slack.md)
2726
* [How to reload php-fpm?](how-to-reload-fpm.md)
2827
* [How to terminate horizon?](how-to-horizon.md)

‎docs/how-to-npm.md

Copy file name to clipboard
+8-5Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# How to compile assets on deploy using npm?
1+
# How to compile assets on deploy using npm (or yarn)?
22

3-
The recipe `recipe/npm.php` is already required within Laravel Deployer's recipe. Therefore, all you need to do is hook the `npm` tasks in you deployment flow.
3+
The recipes `recipe/npm.php` and `recipe/yarn.php` are already required within Laravel Deployer's recipe. Therefore, all you need to do is hook the relevant tasks in you deployment flow.
44

55
```php
66
// config/deploy.php
77

88
'hooks' => [
99
'build' => [
10-
'npm:install',
11-
'npm:production',
10+
'npm:install', // or yarn:install
11+
'npm:production', // or yarn:production
1212
],
1313
],
1414
```
@@ -19,4 +19,7 @@ The recipe `recipe/npm.php` is already required within Laravel Deployer's recipe
1919
| - | - |
2020
| `npm:install` | Copy the `node_modules` folder from the previous release if it exists, and run `npm install`. |
2121
| `npm:development` | Compile your assets using `npm run develoment`. |
22-
| `npm:production` | Compile your assets using `npm run production`. |
22+
| `npm:production` | Compile your assets using `npm run production`. |
23+
| `yarn:install` | Copy the `node_modules` folder from the previous release if it exists, and run `yarn install`. |
24+
| `yarn:development` | Compile your assets using `yarn develoment`. |
25+
| `yarn:production` | Compile your assets using `yarn production`. |

‎docs/how-to-yarn.md

Copy file name to clipboardExpand all lines: docs/how-to-yarn.md
-22Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.