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

[Issues 1259] add frontend make build target #1260

Merged
merged 7 commits into from
Feb 20, 2024

Conversation

rylew1
Copy link
Contributor

@rylew1 rylew1 commented Feb 16, 2024

Summary

Fixes #1259

Time to review: 1 min

Changes proposed

  • add frontend make build target

Context for reviewers

  • when adding a new package with npm and running make dev, local docker needs to rebuild to pull in new dependencies

artillery run -e production artillery-load-test.yml
Copy link
Contributor Author

@rylew1 rylew1 Feb 16, 2024

Choose a reason for hiding this comment

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

Not sure what this was about

@@ -40,6 +40,9 @@ release-build:
##################################################
# Local development
##################################################
build: # Build the Next.js local dev server in Docker
docker-compose build --no-cache nextjs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There might be a better option for updating local packages in docker - but this was the quick solution

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Feb 16, 2024
Copy link
Contributor

@SammySteiner SammySteiner left a comment

Choose a reason for hiding this comment

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

Approving, but please remove the dash from docker-compose before merging as that has been deprecated

@@ -40,6 +40,9 @@ release-build:
##################################################
# Local development
##################################################
build: # Build the Next.js local dev server in Docker
docker-compose build --no-cache nextjs
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
docker-compose build --no-cache nextjs
docker compose build --no-cache nextjs storybook

docker compose doesn't get a dash anymore, I also type it accidentally all the time.
let's add storybook here too, unless you want to have separate build-dev and build-storybook make commands.
can you also update our renovate review instructions with this make command here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I propose splitting splitting up the app and storybook to make it more modular

@rylew1 rylew1 merged commit 1b3607d into main Feb 20, 2024
9 checks passed
@rylew1 rylew1 deleted the rylew/1259-add-frontend-make-build-target branch February 20, 2024 17:44
@rylew1 rylew1 self-assigned this Mar 1, 2024
@rylew1 rylew1 added this to the Technical improvements milestone Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/cd documentation Improvements or additions to documentation frontend
Projects
Development

Successfully merging this pull request may close these issues.

[Task]: Add new make target to build nextjs service
2 participants