39 lines
1.4 KiB
Plaintext
39 lines
1.4 KiB
Plaintext
{
|
|
"$schema": "https://deno.land/x/denoh@v3.2.0/schema.json", //githooks schema
|
|
"tasks": {
|
|
//Config
|
|
"hooks:install": "deno run --allow-read=. --allow-write=./.git/hooks https://deno.land/x/denoh@v3.2.0/denoh.ts",
|
|
//Global
|
|
"check": "deno task web:check",
|
|
"fmt:check": "git diff --name-only --staged | xargs deno fmt --check deno.jsonc",
|
|
"dev:deploy": "deno task dev:deploy:reset && deno task dev:deploy:send && deno task dev:deploy:start",
|
|
"dev:deploy:reset": "ssh julien@gowest.local \"rm -rf gowest/*\"",
|
|
"dev:deploy:send": "scp -r \"$(pwd)/*\" julien@gowest.local:gowest/",
|
|
"dev:deploy:start": "ssh julien@gowest.local \"deno task -c gowest/deno.jsonc dev:deploy:serve\"",
|
|
"dev:deploy:serve": "sudo -- sh -c 'PORT=80 deno task -c /home/julien/gowest/deno.jsonc web:start | tee /var/log/gowest/web/$(date -u +\"%Y-%m-%dT%H:%M:%SZ\").log'",
|
|
//Web
|
|
"web:start": "deno task -c ./web/deno.json start",
|
|
//Sketch
|
|
"sketch:fcinfo": "deno run --allow-read=. --allow-write=./sketch --allow-run=python3,git ./scripts/fcinfo.ts",
|
|
"sketch:name_conv": "deno run -A ./scripts/freecad_name_conv.ts ./sketch/name_conv.ts ./sketch"
|
|
},
|
|
"importMap": "./import_map.json",
|
|
"workspaces": [
|
|
"electronic",
|
|
"music",
|
|
"robot",
|
|
"sketch",
|
|
"translator",
|
|
"web"
|
|
],
|
|
"fmt": {
|
|
"singleQuote": true,
|
|
"useTabs": true,
|
|
"semiColons": false,
|
|
"indentWidth": 4
|
|
},
|
|
"githooks": {
|
|
"pre-commit": ["sketch:fcinfo", "sketch:name_conv", "fmt:check"]
|
|
}
|
|
}
|