feat: add deno task config in fresh init bootstrapped projects (#143)

This commit is contained in:
Yongwook Choi
2022-04-23 15:16:31 +02:00
committed by GitHub
parent bfd5bd3e9f
commit 49d2e54335
7 changed files with 33 additions and 11 deletions
+9 -1
View File
@@ -186,6 +186,14 @@ await start(manifest);
// this throws on windows
}
const DENO_CONFIG = `{
"tasks": {
"start": "deno run -A --watch main.ts"
}
}`;
await Deno.writeTextFile(join(directory, "deno.json"), DENO_CONFIG);
const README_MD = `# fresh project
### Usage
@@ -193,7 +201,7 @@ await start(manifest);
Start the project:
\`\`\`
deno run -A --watch main.ts
deno task start
\`\`\`
After adding, removing, or moving a page in the \`routes\` or directory, or adding,