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

Made v4 the default build version #836

Merged
merged 2 commits into from
Aug 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
run: |
curl -sSL https://install.python-poetry.org | python3 -
npm ci
npm run build-v4
npm run build
2 changes: 1 addition & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ echo "Backend hostname: $BACKEND_HOSTNAME"
echo "CloudFormation stack name: $CF_STACK_NAME"

# build frontend
npm run build-v4
npm run build

pushd server/ > /dev/null
poetry export --without-hashes --output requirements.txt
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,8 @@
"start": "concurrently npm:start-python npm:start-react",
"start-python": "cd server && poetry run chalice local --port=5000",
"start-react": "npm run get-data && next dev",
"build": "next build && rm -rf build/static/slowzones",
"build-v4": "next build && next export && rm -rf build/static/slowzones",
"serve-static": "npm run build-v4 && serve out",
"build": "next build && next export && rm -rf build/static/slowzones",
"serve-static": "npm run build && serve out",
"get-data": "npm run get-sz-totals && npm run get-szs && npm run get-speed-restrictions && npm run get-landing-trip-metrics && npm run get-landing-ridership",
"get-sz-totals": "wget -N -x -nH -P public https://dashboard.transitmatters.org/static/slowzones/delay_totals.json",
"get-landing-trip-metrics": "wget -N -x -nH -P public https://dashboard.transitmatters.org/static/landing/trip_metrics.json",
Expand Down
Loading