always build before deploying.

This commit is contained in:
fiatjaf
2024-02-16 22:33:34 -03:00
parent 8fce950030
commit fc549dac67

View File

@@ -5,13 +5,11 @@ build:
cp src/index.html dist/index.html cp src/index.html dist/index.html
cp -r src/img dist/img cp -r src/img dist/img
deploy: deploy: lint build
wrangler pages publish --project-name metadata-contacts-relays dist/ wrangler pages publish --project-name metadata-contacts-relays dist/
lint: lint:
eslint src/ --ext .js,.jsx,.ts,.tsx eslint src/ --ext .js,.jsx,.ts,.tsx
build-and-deploy: build deploy
serve: serve:
fd '.ts|.html|.css' | entr -r bash -c 'just build && python -m http.server -d dist/ 8080' fd '.ts|.html|.css' | entr -r bash -c 'just build && python -m http.server -d dist/ 8080'