Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
59 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
|
||
|
||
1. nx build web (find the set of tasks it needs to run) | ||
2. for each task it will compute the hash | ||
3. it checks if the outputs are already in the right place | ||
4. it checks the cache (local and then remote) | ||
5. run it and store it the cache | ||
6. Nx Cloud provides remote caching | ||
|
||
|
||
Use static serve to max cache hits: | ||
nx serve myapp (they run webpack-dev-server) | ||
nx serve-static myapp (build + http-server dist) | ||
|
||
Imagine you don't have serve-static: | ||
nx affected --target=build & nx affected --target=e2e | ||
|
||
If you have static serve: | ||
nx affected --target=build && nx affected --target=e2e | ||
nx affected --target=e2e (where e2e has a dependOn on static-serve/build) | ||
|
||
Your case is perfect for caching :) | ||
|
||
|
||
Distribution is the only way to make your CI really fast consistenlty. | ||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e6f73a8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
nx-dev – ./
nx-dev-nrwl.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app
nx.dev