deno.land / x / packup@v0.1.12 / build_test.ts

build_test.ts
View Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { assertEquals } from "./test_deps.ts";import { join } from "./deps.ts";import { main } from "./cli.ts";
Deno.test("cli.ts build <entrypoint> --dist-dir <path> -- builds the site into given path", async () => { const tempdir = await Deno.makeTempDir(); assertEquals( await main(["build", "examples/simple/index.html", "--dist-dir", tempdir]), 0, ); assertEquals( await Deno.readTextFile(join(tempdir, "index.html")), "<html><head></head><body><div>aaa</div>\n</body></html>", );});
packup
📦 Zero-config web application packager in Deno
GitHub Repositorykt3k/packup
GitHub Stars
260

Version Info

Tagged at
4 months ago