53 lines
3.5 KiB
JSON
53 lines
3.5 KiB
JSON
{
|
|
"tasks": {
|
|
"check": "deno check agv_main.ts",
|
|
"check:watch": "deno check --watch agv_main.ts",
|
|
"run": "deno run --log-level=info --inspect --allow-net --allow-read --unstable-kv --allow-env --node-modules-dir agv_main.ts",
|
|
"run:watch": "deno run --watch --allow-net --allow-read --allow-hrtime --unstable-kv --allow-env --node-modules-dir agv_main.ts",
|
|
"compile": "deno compile --include agv_worker.ts --include agv_manager.ts --include master_manager.ts --include web_worker.ts --include cli.ts --include vda_worker.ts --include vda5050_transformer_worker.ts --allow-net --allow-read --unstable-kv --allow-env --node-modules-dir --output agv_api agv_main.ts",
|
|
"compile:all": "deno task compile:linux && deno task compile:windows && deno task compile:mac",
|
|
"compile:linux": "deno compile --allow-net --allow-read --allow-hrtime --unstable-kv --allow-env --node-modules-dir --target x86_64-unknown-linux-gnu --output agv_simulator_linux agv_main.ts",
|
|
"compile:windows": "deno compile --allow-net --allow-read --allow-hrtime --unstable-kv --allow-env --node-modules-dir --target x86_64-pc-windows-msvc --output agv_simulator_windows agv_main.ts",
|
|
"compile:mac": "deno compile --allow-net --allow-read --allow-hrtime --unstable-kv --allow-env --node-modules-dir --target x86_64-apple-darwin --output agv_simulator_mac agv_main.ts",
|
|
"clean": "rm -f agv_simulator agv_simulator_linux agv_simulator_windows agv_simulator_mac",
|
|
"install:deps": "deno cache --reload agv_main.ts",
|
|
"bundle": "deno bundle agv_main.ts > agv_simulator.js",
|
|
"sim": "deno run --allow-net --allow-read --allow-env --allow-write --allow-run simulator_main.ts",
|
|
"sim:compile": "deno compile --include simulator.ts --include device_simulator.ts --include simulator_config.ts --include debug_logger.ts --allow-net --allow-read --allow-env --allow-write --allow-run --output simulator simulator_main.ts",
|
|
"sim:compile:all": "deno task sim:compile:linux && deno task sim:compile:windows && deno task sim:compile:mac",
|
|
"sim:compile:linux": "deno compile --include simulator.ts --include device_simulator.ts --include simulator_config.ts --include debug_logger.ts --allow-net --allow-read --allow-env --allow-write --allow-run --target x86_64-unknown-linux-gnu --output simulator_linux simulator_main.ts",
|
|
"sim:compile:windows": "deno compile --include simulator.ts --include device_simulator.ts --include simulator_config.ts --include debug_logger.ts --allow-net --allow-read --allow-env --allow-write --allow-run --target x86_64-pc-windows-msvc --output simulator_windows simulator_main.ts",
|
|
"sim:compile:mac": "deno compile --include simulator.ts --include device_simulator.ts --include simulator_config.ts --include debug_logger.ts --allow-net --allow-read --allow-env --allow-write --allow-run --target x86_64-apple-darwin --output simulator_mac simulator_main.ts",
|
|
"sim:clean": "rm -f simulator simulator_linux simulator_windows simulator_mac"
|
|
|
|
},
|
|
"env": {
|
|
"DEBUG": "*"
|
|
},
|
|
"compilerOptions": {
|
|
"allowJs": true,
|
|
"lib": ["deno.window", "deno.worker"],
|
|
"strict": true
|
|
},
|
|
"importMap": "import_map.json",
|
|
"fmt": {
|
|
"files": {
|
|
"include": ["*.ts", "*.js", "*.json"]
|
|
},
|
|
"options": {
|
|
"useTabs": false,
|
|
"lineWidth": 100,
|
|
"indentWidth": 2,
|
|
"singleQuote": true,
|
|
"proseWrap": "preserve"
|
|
}
|
|
},
|
|
"lint": {
|
|
"files": {
|
|
"include": ["*.ts", "*.js"]
|
|
},
|
|
"rules": {
|
|
"tags": ["recommended"]
|
|
}
|
|
}
|
|
} |