Repository navigation
feat: configurable assets_dir and lockfile_dir for apps sharing a project root #8009
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
benedikt-bartscher
wants to merge
11
commits into
reflex-dev:main
Choose a base branch
from
benedikt-bartscher:app-assets-and-lockfile-dirs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
102c66e
feat: configurable assets_dir and lockfile_dir for apps sharing a pro…
benedikt-bartscher cc1cc2d
Merge remote-tracking branch 'github/main' into app-assets-and-lock-dirs
benedikt-bartscher aee655e
Merge branch 'main' into app-assets-and-lockfile-dirs
benedikt-bartscher 536867a
fix: keep lockfile writes in nested or foreign lockfile dirs from res…
benedikt-bartscher 8dcb5fe
fix: update configured dirs that reflex rename moves with the app
benedikt-bartscher 83df04e
fix: gitignore shared asset links in the configured assets dir on init
benedikt-bartscher c6cf803
Merge remote-tracking branch 'origin/app-assets-and-lockfile-dirs' in…
benedikt-bartscher 30c230d
fix: rewrite only the moved directory settings and resolve excluded d…
benedikt-bartscher 6d9168d
docs: note absolute paths and imports in the assets_dir and lockfile_…
benedikt-bartscher e1a4a62
fix: match the moved directory settings of reflex rename by syntax tree
benedikt-bartscher 57051a9
fix: update absolute directory settings inside the app on reflex rename
benedikt-bartscher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 @@ | ||
| `rx.Config(assets_dir=...)` and `rx.Config(lockfile_dir=...)` move an app's `assets` and `reflex.lock` directories, so apps that share a project root each ship only their own assets and keep their own frontend lockfiles: `rx.Config(app_name="website", assets_dir=Path("website/assets"), lockfile_dir=Path("website/reflex.lock"))`. | ||
|
benedikt-bartscher marked this conversation as resolved.
Resolved
|
||
1 change: 1 addition & 0 deletions
1
packages/reflex-base/news/+app-assets-and-lockfile-dirs.feature.md
This file contains hidden or 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 @@ | ||
| `Config` has `assets_dir` and `lockfile_dir`, defaulting to `assets` and `reflex.lock` under the app root. |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.