feat: a new "island" based architechture (#97)

This commit is contained in:
Luca Casonato
2022-03-04 19:49:27 +01:00
committed by GitHub
parent d441bf2489
commit 8daa280862
70 changed files with 820 additions and 972 deletions
+6 -6
View File
@@ -1,6 +1,6 @@
import { parseArgs } from "./src/cli/deps.ts";
import { initSubcommand } from "./src/cli/init.ts";
import { routesSubcommand } from "./src/cli/routes.ts";
import { manifestSubcommand } from "./src/cli/manifest.ts";
const VERSION = "0.1.0";
@@ -10,12 +10,12 @@ Preact, but super edgy.
To initalize a new project:
fresh init ./myproject
To (re-)generate route manifest:
fresh routes
To (re-)generate the manifest file:
fresh manifest
SUBCOMMANDS:
init Initalize a fresh project
routes (Re-)generate the route manifest file
manifest (Re-)generate the manifest file
`;
const args = parseArgs(Deno.args, {
@@ -34,8 +34,8 @@ switch (subcommand) {
case "init":
await initSubcommand(args);
break;
case "routes":
await routesSubcommand(args);
case "manifest":
await manifestSubcommand(args);
break;
default:
if (args.version) {