Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wvbe/dirty_deno_slapper
A Deno module that slaps your TS/CSS source together
https://github.com/wvbe/dirty_deno_slapper
deno esbuild postcss xhtml
Last synced: 9 days ago
JSON representation
A Deno module that slaps your TS/CSS source together
- Host: GitHub
- URL: https://github.com/wvbe/dirty_deno_slapper
- Owner: wvbe
- Created: 2024-04-29T09:16:13.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-19T21:16:15.000Z (8 months ago)
- Last Synced: 2024-11-07T07:51:54.716Z (about 2 months ago)
- Topics: deno, esbuild, postcss, xhtml
- Language: TypeScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A real quick-and-dirty build system for a simple XHTML/TS/CSS page, because I hate to write it twice.
> No guarantees to a stable API whatsoever
In your `slap.ts`:
```sh
await slap(
import.meta.resolve('./src/game/Game.ts'),
import.meta.resolve('./src/style.css'),
{
sourcemap: true,
},
);
console.log(xhtml);
```Then in your `deno.json`:
```json
{
…
"tasks": {
"slap": "deno run -A slap.ts > slap.html",
"watch": "npx chokidar-cli \"src/**/*\" --command \"deno task slap\"",
"dev": "deno task slap && deno task watch"
}
}```