deno.land / x / denon@2.5.0 / src / templates.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Copyright 2020-2021 the denosaurs team. All rights reserved. MIT license.
import { VERSION } from "../info.ts";
// deno-lint-ignore-file
export interface Template { filename: string; source: string;}
const json: Template = { filename: "scripts.json", source: String.raw`{ "$schema": "https://deno.land/x/denon@${VERSION}/schema.json", "scripts": { "start": { "cmd": "deno run app.ts", "desc": "run my app.ts file" } }}`,};
const yaml: Template = { filename: "scripts.yml", source: String.raw`scripts: start: cmd: "deno run app.ts" desc: "run my app.ts file"`,};
const typescript: Template = { filename: "scripts.config.ts", source: String.raw`import { DenonConfig } from "https://deno.land/x/denon@${VERSION}/mod.ts";
const config: DenonConfig = { scripts: { start: { cmd: "deno run app.ts", desc: "run my app.ts file", }, },};
export default config;`,};
export const templates: { [key: string]: Template } = { json: json, yaml: yaml, yml: yaml, ts: typescript, typescript: typescript,};
denon

Version Info

Tagged at
2 years ago

External Dependencies

No external dependencies 🎉