diff --git a/denon.config.ts b/denon.config.ts deleted file mode 100644 index 0fb4ce2..0000000 --- a/denon.config.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { DenonConfig } from "./mod.ts"; - -const config: DenonConfig = { - scripts: { - test: [ - { - cmd: "deno fmt --check", - desc: "format code", - }, - { - cmd: "deno lint", - desc: "lint code", - unstable: true, - }, - { - cmd: "deno test", - desc: "test code", - allow: "all", - unstable: true, - }, - ], - }, - logger: { - debug: false, - }, -}; - -export default config; diff --git a/scripts.yml b/scripts.yml new file mode 100644 index 0000000..756934e --- /dev/null +++ b/scripts.yml @@ -0,0 +1,6 @@ +scripts: + test: + - "deno fmt --check" + - "deno lint --unstable" + - "deno test --unstable -A" +watch: false \ No newline at end of file diff --git a/src/templates.ts b/src/templates.ts index 4c5ee77..ffda87e 100644 --- a/src/templates.ts +++ b/src/templates.ts @@ -10,7 +10,7 @@ export interface Template { } const json: Template = { - filename: "denon.json", + filename: "scripts.json", source: String.raw`{ "$schema": "https://deno.land/x/denon/schema.json", "scripts": { @@ -23,7 +23,7 @@ const json: Template = { }; const yaml: Template = { - filename: "denon.yml", + filename: "scripts.yml", source: String.raw`scripts: start: cmd: "deno run app.ts" @@ -31,7 +31,7 @@ const yaml: Template = { }; const typescript: Template = { - filename: "denon.config.ts", + filename: "scripts.config.ts", source: String.raw` import { DenonConfig } from "https://deno.land/x/denon@${VERSION}/mod.ts";