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

Remove asset build stage when no package.json exists #40

Merged
merged 2 commits into from
May 27, 2024

Conversation

KTanAug21
Copy link
Contributor

What and Why:
Remove the asset build stage from the generated Dockerfile when package.json does not exist. This build stage results in build error for Laravel apps that don't use package.json, i.e. api apps. See community member issue here!

How:
Set the value of option['build-asset'] to false if no package.json exists!

Also:
Quick edit to the GenerateCommandTest.php to include package.json file in each supported test folder, so that the asset build stage is included in the generated dockerfiles during testing.

Copy link

@Johannes-Werbrouck Johannes-Werbrouck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@KTanAug21 KTanAug21 merged commit 1f642e5 into main May 27, 2024
2 checks passed
@KTanAug21 KTanAug21 deleted the remove_node_installation_if_node_config_not_available branch July 26, 2024 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants