Skip to content

A Deno module that slaps your TS/CSS source together

Notifications You must be signed in to change notification settings

wvbe/dirty_deno_slapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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:

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:

{
	
	"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"
	}
}

About

A Deno module that slaps your TS/CSS source together

Topics

Resources

Stars

Watchers

Forks