Skip to content
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

Run multiple assets processes #131

Merged
merged 22 commits into from Feb 8, 2024
Merged

Run multiple assets processes #131

merged 22 commits into from Feb 8, 2024

Conversation

timriley
Copy link
Member

@timriley timriley commented Jan 16, 2024

Build upon hanami/assets-js#20 and update the assets compile and assets watch commands to fork a child process per slice and run a separate assets command per each.

Provide appropriate --path and --dest flags for each of these commands, allowing each slice's assets to be compiled separately and generated into distinct directories (public/assets/ for the app, and public/assets/[slice_name]/ for slices).

Supports per-slice assets config, by running a slice's own config/assets.js, if present, otherwise falling back to the app's config/assets.js.

Finally, incorporates hanami/assets#138, using the new node_command setting to invoke node when running the config/assets.js command.

@timriley timriley self-assigned this Jan 26, 2024
@timriley timriley merged commit 8b06fdc into main Feb 8, 2024
6 checks passed
@timriley timriley deleted the multiple-assets-processes branch February 8, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant