-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeno.json
More file actions
114 lines (106 loc) · 3.57 KB
/
deno.json
File metadata and controls
114 lines (106 loc) · 3.57 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
"name": "@mezmo/cli",
"tasks": {
"local": {
"description": "Run the main command with environment vairables loaded from 'env/local'",
"command": "deno run --env-file=env/local.env --allow-env --allow-net --allow-sys --allow-read --allow-write --unstable-raw-imports --unstable-kv --unstable-temporal main.ts"
},
"test": {
"command": "deno test --unstable-kv --unstable-temporal --coverage --junit-path coverage/test.xml",
"description": "Runs the test suite with code coverage enabled"
},
"reports": {
"command": "deno coverage --detailed --html --lcov",
"description": "Generates detailed coverage reports after tests",
"dependencies": ["clean", "test"]
},
"version": {
"description": "print the version number"
, "command": "cat package.json | awk '/version/ {gsub(/[\",]/,\"\"); print $2}'"
},
"clean": {
"description": "Remove build artifacts",
"command": "rm -rf dist mzm coverage"
},
"setup": {
"description": "Prepare the staging area for a new build",
"command": "mkdir -p dist"
},
"compile:cmd": {
"description": "echos out the command command for compiling a build. not used directly",
"command": "deno compile -P -r --no-npm --unstable-kv --unstable-temporal --unstable-raw-imports"
},
"compile:linux:x86": {
"description": "compile a linux x86 binary",
"command": "deno run compile:cmd -o dist/mzm-linux-x86_64 --target x86_64-unknown-linux-gnu main.ts"
},
"compile:linux:arm": {
"description": "compile a linux x86 binary",
"command": "deno run compile:cmd -o dist/mzm-linux-aarch64 --target aarch64-unknown-linux-gnu main.ts"
},
"compile:osx:x86": {
"description": "compile a osx binary",
"command": "deno run compile:cmd -o dist/mzm-darwin-x86_64 --target x86_64-apple-darwin main.ts"
},
"compile:osx:arm": {
"description": "compile a osx binary",
"command": "deno run compile:cmd -o dist/mzm-darwin-aarch64 --target aarch64-apple-darwin main.ts"
},
"compile:windows": {
"description": "compile windows binary",
"command": "deno run compile:cmd -o dist/mzm-windows-x86_64.exe --target x86_64-pc-windows-msvc main.ts"
},
"compile:local": {
"description": "compile a binary in the cwd for the host platform. for easy testing",
"command": "deno run compile:cmd -o mzm main.ts"
},
"compile": {
"command": "deno run compile:windows & deno run compile:osx:arm & deno run compile:osx:x86 & deno run compile:linux:x86 & deno run compile:linux:arm & deno run compile:local",
"description": "Runs all compliation targets",
"dependencies": ["clean", "setup"]
}
},
"exports": "./main.ts",
"workspace": [
"./@mzm/command-ask",
"./@mzm/command-config",
"./@mzm/command-create",
"./@mzm/command-delete",
"./@mzm/command-edit",
"./@mzm/command-get",
"./@mzm/command-log",
"./@mzm/command-upgrade",
"./@mzm/command-version",
"./@mzm/config",
"./@mzm/core",
"./@mzm/log"
],
"fmt": {
"useTabs": false,
"indentWidth": 2,
"lineWidth": 110,
"spaceSurroundingProperties": false,
"singleQuote": true,
"semiColons": false
},
"lint": {
"include": ["@mzm/"],
"rules": {
"tags": ["recommended"],
"exclude": ["no-explicit-any"]
}
},
"compile": {
"permissions": {
"env": true,
"net": true,
"read": true,
"write": true,
"sys": true,
"run": true
}
},
"imports": {
"@std/assert": "jsr:@std/assert@1"
}
}