feat(make): initial commit

This commit is contained in:
Simon Lecoq
2023-11-01 21:50:55 -04:00
parent c1222a8094
commit 161847bf1b
29 changed files with 1542 additions and 0 deletions

57
demo.jsonc Normal file
View File

@@ -0,0 +1,57 @@
{
"+tasks": {
"start": {
"description": "🍱 Start application",
"task": "deno run mod.ts",
"deno": {
"run": { // For "deno run" subcommand
"unstable": true, // ➡️ --unstable
"permissions": {
"prompt": false, // ➡️ --no-prompt
"read": true, // ➡️ --allow-read
"run": false, // ➡️ --deny-run
"net": [ // ➡️ --allow-net=https://deno.land,https://example.com
"https://deno.land",
"https://example.com"
],
"write": { // ➡️ --allow-write=/tmp --deny-write=/root
"allow": [
"/tmp"
],
"deny": [
"/root"
]
}
}
}
},
// Configure environment variables
"env": {
"FOO": true, // ➡️ Inherit FOO environment variable
"BAR": "bar" // ➡️ Set BAR environment variable to "bar"
}
},
// Write "multi-line" tasks using arrays (they will be joined with "\n")
"test": {
"description": "🧪 Run tests and print collected coverage",
"task": [
"rm -rf .coverage &&",
"deno test &&",
"deno coverage .coverage"
],
"deno": {
"test": { // For "deno test" subcommand
"unstable": true, // ➡️ --unstable
"permissions": { // ➡️ --allow-all
"all": true
},
"coverage": ".coverage", // ➡️ --coverage=.coverage
"parallel": true // ➡️ --parallel
},
"coverage": { // For "deno coverage" subcommand
"quiet": true // ➡️ --quiet
}
}
}
}
}