feat: remove fresh cli, do manifest generation in process (#223)

This commit removes the `fresh` cli, replacing it with a small bootstrap script,
and JIT generation of the manifest that happens in process during development.
This commit is contained in:
Luca Casonato
2022-06-14 09:39:38 +02:00
committed by GitHub
parent 844ded8cfd
commit 836cc24bdd
40 changed files with 362 additions and 730 deletions
+2 -2
View File
@@ -39,14 +39,14 @@ const assertFileExistence = async (tree: FileTree[], dirname?: string) => {
};
Deno.test({
name: "fresh init",
name: "fresh-init",
async fn(t) {
// Preparation
const tmpDirName = await Deno.makeTempDir();
await t.step("execute init command", async () => {
const cliProcess = Deno.run({
cmd: ["deno", "run", "-A", "--no-check", "cli.ts", "init", tmpDirName],
cmd: ["deno", "run", "-A", "--no-check", "init.ts", tmpDirName],
stdout: "null",
});
const { code } = await cliProcess.status();