Zero-config web application packager in Deno.
⚠️ This tool is still in its early development stage.
- 📦 Bundle web application like Parcel.
- ✨ Support TypeScript out of the box.
- 🦕 Deno-compatible ES Modules resolution.
- 💨 Fast build with Esbuild-wasm bundler.
Install via deno.land/x:
deno run -A https://firstname.lastname@example.org/install.ts
<html> <body> <script src="./main.ts"></script> <h1>Hi from packup!</h1> </body> </html>
packup has the development server builtin. Run the following command to start
Then open http://localhost:1234/ in your browser.
packup serve -h and
packup build -h for more usages.
- twind example
- dom manipulation example
- give the example way of properly typing the typescripts
- Maybe use lib: ["dom"] ?
- Make esbuild.wasm path configurable
- optimize (minify) option
- css import support
- image import support
- doc web site in packup
- import map support
- sourcemap support
- scss support
- styled-components example
- react router example
- react example
- --open support
- Assets in
static/dir are served/copied as is. (Use this for images and other assets.)
- Something like https://github.com/elwin013/parcel-plugin-static-files-copy
- optimize esbuild loading
- --port support (serve)
- --dist-dir support (build)
- Runs parcels original examples (with Deno specific stuff modification).
- Doesn't work because it includes commonjs references which I don't want to support.
- List asset sizes
deno run cli.ts [serve] index.htmlstarts server at localhost port 1234, watch all dependencies, rebuild all assets when changed.
deno run cli.ts build index.htmlbuilds static assets to 'dist' directory.
- Referenced scripts from
<script>tags are bundled and served/built.
- Stylesheets referenced from
<link />tags are just served/copied as is.