-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace all package.json scripts with the justfile.
- Loading branch information
Showing
2 changed files
with
12 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
build: | ||
yarn run build | ||
rm -rf dist | ||
esbuild src/index.ts --bundle --minify --sourcemap=external --outfile=dist/index.js | ||
./node_modules/.bin/sass src/style.scss dist/style.css --style compressed | ||
cp src/index.html dist/index.html | ||
cp -r src/img dist/img | ||
|
||
deploy: | ||
wrangler pages publish --project-name metadata-contacts-relays dist/ | ||
|
||
lint: | ||
eslint src/ --ext .js,.jsx,.ts,.tsx | ||
|
||
build-and-deploy: build deploy | ||
|
||
serve: | ||
fd '.ts|.html|.css' | entr -r bash -c 'just build && python -m http.server -d dist/ 8080' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters