Skip to content

Commit

Permalink
osrd-ui: cache builds with nx
Browse files Browse the repository at this point in the history
Configure nx (used under-the-hood by lerna) to cache build
artifacts. Significantly decreases build time when a single
sub-package has changed.

Signed-off-by: Simon Ser <[email protected]>
  • Loading branch information
emersion committed Jan 23, 2025
1 parent 8d46c98 commit f438707
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ storybook-static
# IDE
.vscode/

.nx/cache
10 changes: 10 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"targetDefaults": {
"build": {
"cache": true,
"outputs": [
"{projectRoot}/dist"
]
}
}
}

0 comments on commit f438707

Please sign in to comment.