-
Notifications
You must be signed in to change notification settings - Fork 1
/
deno.jsonc
48 lines (48 loc) · 2.31 KB
/
deno.jsonc
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
{
"tasks": {
/**
* Run the CLI in development mode. This will use the local Paperspace API and
* Console URLs.
*/
"dev": "PAPERSPACE_API_URL=https://api.psdev.sh:8443/v1 PAPERSPACE_CONSOLE_URL=https://console.psdev.sh:8443/ deno run --allow-env --allow-run --allow-read --allow-write --allow-net --unsafely-ignore-certificate-errors mod.ts",
/**
* Run the CLI in production mode. This will use the production Paperspace API and
* Console URLs.
*/
"run": "deno run --allow-env --allow-run --allow-read --allow-write --allow-net mod.ts",
/**
* Compile the CLI for all supported platforms.
*/
"compile": "deno task compile:macos && deno task compile:macos-arm && deno task compile:linux && deno task compile:windows",
"compile:macos": "deno compile --allow-env --allow-run --allow-read --allow-write --allow-net --target x86_64-apple-darwin --output bin/macos/pspace mod.ts",
"compile:macos-arm": "deno compile --allow-env --allow-run --allow-read --allow-write --allow-net --target aarch64-apple-darwin --output bin/macos-arm/pspace mod.ts",
"compile:linux": "deno compile --allow-env --allow-run --allow-read --allow-write --allow-net --target x86_64-unknown-linux-gnu --output bin/linux/pspace mod.ts",
"compile:windows": "deno compile --allow-env --allow-run --allow-read --allow-write --allow-net --target x86_64-pc-windows-msvc --output bin/windows/pspace mod.ts",
/**
* Generate the CLI documentation.
*/
"docs": "deno run --allow-all .scripts/generate-docs.ts",
/**
* Generate the Paperspace public API types in development mode.
*/
"generate-api": "deno run --allow-all .scripts/generate-api.ts https://api.psdev.sh:8443/v1/openapi.json",
/**
* Generate the Paperspace public API types in production mode.
*/
"generate-api:prod": "deno run --allow-all .scripts/generate-api.ts",
/**
* Run the CLI unit tests.
*/
"test": "deno test --allow-env --allow-run --allow-read --allow-write --allow-net --no-check",
/**
* Benchmark the `help` command on macOS ARM. This is a good indicator of the
* boot performance of the CLI.
*/
"bench": "deno task compile:macos-arm && hyperfine --warmup 5 'bin/macos-arm/pspace'"
},
"test": {
"files": {
"include": ["test"]
}
}
}