-
Notifications
You must be signed in to change notification settings - Fork 2
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
Minify production build of patterns.hypothes.is website #1806
Conversation
@echo "make sure Make sure that the formatter, linter, tests, etc all pass" | ||
@echo "make clean Delete development artefacts (cached files, " | ||
@echo " dependencies, etc)" | ||
@echo "make test Run the unit tests once" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I sorted the entries after make help
alphabetically to make it easier to figure out where to slot any new entries in.
@git archive --format=tar.gz HEAD | docker build -t hypothesis/frontend-shared:latest - | ||
|
||
# Run Docker container. Publish to port 5002 on the host to avoid a conflict | ||
# with other Hypothesis projects. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
h's WebSocket server uses port 5001.
I think |
10ade1b
to
be09ae8
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1806 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 68 68
Lines 1234 1234
Branches 468 468
=========================================
Hits 1234 1234 ☔ View full report in Codecov by Sentry. |
The changes to rollup.config.js were copied from the hypothesis/client repo.
This enables testing the website locally as follows: 1. Run `make docker` 2. Run `make run-docker` 3. Navigate to http://localhost:5002
be09ae8
to
5168a37
Compare
docker
andrun-docker
make targets to facilitate local testing of the Docker buildTesting:
make docker
make run-docker