Skip to content

Commit

Permalink
use terser for public js
Browse files Browse the repository at this point in the history
  • Loading branch information
tireymorris committed Jul 24, 2024
1 parent 9f952e7 commit dcf14cf
Show file tree
Hide file tree
Showing 4 changed files with 237 additions and 234 deletions.
Binary file modified bun.lockb
Binary file not shown.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"name": "hyperwave",
"version": "0.3.0",
"scripts": {
"build": "bun build:css && bun build:server",
"build": "bun build:css && bun build:server && bun build:hyperwavejs",
"build:css": "unocss \"src/**/*.tsx\" -o public/styles/uno.css",
"build:server": "bun build --compile ./src/server.tsx --outfile ./dist/server",
"build:hyperwavejs": "terser src/util/hyperwave.js -o public/scripts/hyperwave.js --compress --mangle",
"css:watch": "unocss --watch \"src/**/*.tsx\" -o public/styles/uno.css",
"db": "bun run src/db.ts",
"dev": "bun install && DEBUG=true concurrently --restart-tries=3 \"bun css:watch\" \"bun server:watch\"",
"dev": "bun install && DEBUG=true concurrently --restart-tries=3 \"bun css:watch\" \"bun server:watch\" \"bun build:hyperwavejs\"",
"prettier": "bunx prettier --write src/ test/ --plugin prettier-plugin-tailwindcss",
"server:watch": "nodemon --watch src --ext ts,tsx --exec 'bun run --hot src/server.tsx'",
"start": "bun run build && pm2 start; pm2 reload all --update-env",
Expand All @@ -22,6 +23,7 @@
"cheerio": "^1.0.0-rc.12",
"hono": "^4.5.0",
"nodemon": "^3.1.4",
"terser": "^5.31.3",
"unocss": "^0.61.5",
"uuid": "^10.0.0",
"zod": "^3.23.8"
Expand Down
233 changes: 1 addition & 232 deletions public/scripts/hyperwave.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit dcf14cf

Please sign in to comment.