Skip to content

Commit

Permalink
minify hyperwave script
Browse files Browse the repository at this point in the history
  • Loading branch information
tireymorris committed Jul 17, 2024
1 parent 6bf9ba7 commit ce07a29
Show file tree
Hide file tree
Showing 5 changed files with 242 additions and 236 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,13 +2,14 @@
"name": "hyperwave",
"version": "0.2.1",
"scripts": {
"build": "bun build:css && bun build:server && bun build:worker",
"build": "bun build:css && bun build:server && bun build:worker && build:hyperwavejs",
"build:css": "unocss \"src/**/*.tsx\" -o public/styles/uno.css",
"build:server": "bun build --compile ./src/server.tsx --outfile ./dist/server",
"build:worker": "bun build --compile ./src/worker.ts --outfile ./dist/worker",
"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\" \"bun worker\"",
"dev": "bun install && DEBUG=true concurrently --restart-tries=3 \"bun css:watch\" \"bun server:watch\" \"bun worker\" \"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 @@ -24,6 +25,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.

7 changes: 5 additions & 2 deletions public/styles/uno.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@
.border-solid{border-style:solid;}
.bg-blue-300{--un-bg-opacity:1;background-color:rgb(147 197 253 / var(--un-bg-opacity)) /* #93c5fd */;}
.bg-transparent{background-color:transparent /* transparent */;}
.bg-white{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity)) /* #fff */;}
.dark .dark\:bg-gray-900{--un-bg-opacity:1;background-color:rgb(17 24 39 / var(--un-bg-opacity)) /* #111827 */;}
.bg-white,
[bg-white=""]{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity)) /* #fff */;}
.dark .dark\:bg-gray-900,
.dark [dark\:bg-gray-900=""]{--un-bg-opacity:1;background-color:rgb(17 24 39 / var(--un-bg-opacity)) /* #111827 */;}
.hover\:bg-blue-400:hover{--un-bg-opacity:1;background-color:rgb(96 165 250 / var(--un-bg-opacity)) /* #60a5fa */;}
.from-blue-500{--un-gradient-from-position:0%;--un-gradient-from:rgb(59 130 246 / var(--un-from-opacity, 1)) var(--un-gradient-from-position);--un-gradient-to-position:100%;--un-gradient-to:rgb(59 130 246 / 0) var(--un-gradient-to-position);--un-gradient-stops:var(--un-gradient-from), var(--un-gradient-to);}
.to-purple-500{--un-gradient-to-position:100%;--un-gradient-to:rgb(168 85 247 / var(--un-to-opacity, 1)) var(--un-gradient-to-position);}
Expand All @@ -45,6 +47,7 @@
.text-sm{font-size:0.875rem;line-height:1.25rem;}
.text-xl{font-size:1.25rem;line-height:1.75rem;}
.dark .dark\:text-white,
.dark [dark\:text-white=""],
.text-white{--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity)) /* #fff */;}
.text-black{--un-text-opacity:1;color:rgb(0 0 0 / var(--un-text-opacity)) /* #000 */;}
.text-gray-500{--un-text-opacity:1;color:rgb(107 114 128 / var(--un-text-opacity)) /* #6b7280 */;}
Expand Down
Loading

0 comments on commit ce07a29

Please sign in to comment.