-
Notifications
You must be signed in to change notification settings - Fork 117
/
deno.json
48 lines (46 loc) · 3.86 KB
/
deno.json
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": {
"services:macos": "./tools/bin/darwin-arm64/jaeger-all-in-one & ./tools/bin/darwin-arm64/fake-gcs-server -scheme http -port 4080 -filesystem-root=.gcs & ./tools/server.ts",
"services:macos:amd": "./tools/bin/darwin-amd64/jaeger-all-in-one & ./tools/bin/darwin-amd64/fake-gcs-server -scheme http -port 4080 -filesystem-root=.gcs & ./tools/server.ts",
"services:linux": "docker compose up & ./tools/bin/linux-amd64/fake-gcs-server -scheme http -port 4080 -filesystem-root=.gcs & ./tools/server.ts",
"services:linux-no-postgres": "docker compose up jaeger & ./tools/bin/linux-amd64/fake-gcs-server -scheme http -port 4080 -filesystem-root=.gcs & ./tools/server.ts",
"dev:api": "cd api && cargo run",
"dev:frontend": "cd frontend && OLTP_ENDPOINT=http://localhost:4318 deno task dev",
"prod:frontend": "deno run -A --watch ./tools/prod_proxy.ts & cd frontend && API_ROOT=https://api.jsr.io deno task dev",
"lint": "deno task lint:frontend && deno task lint:tools && deno task lint:license",
"lint:frontend": "cd frontend && deno lint && deno check --allow-import=googleapis.deno.dev,deno.land,jsr.io dev.ts main.ts routes/**/*.tsx routes/**/*.ts",
"lint:tools": "deno lint tools/ && deno check --allow-import=googleapis.deno.dev,deno.land,jsr.io tools/**/*.ts",
"lint:license": "deno run --allow-read jsr:@kt3k/[email protected]/main -q",
"lint:license:fix": "deno run --allow-read --allow-write jsr:@kt3k/[email protected]/main -q --inject",
"tools:orama:package_reindex": "deno run --allow-env --allow-net tools/orama_package_reindex.ts",
"tools:orama:symbols_reindex": "deno run --allow-env --allow-net tools/orama_symbols_reindex.ts",
"tools:orama:docs_reindex": "deno run --allow-env --allow-net --allow-read tools/orama_docs_reindex.ts",
"tools:deno_symbols": "deno run --allow-run --allow-read --allow-env --allow-net --allow-write tools/generate_global_symbols.ts",
"tools:web_symbols": "deno run --allow-write tools/generate_web_symbols.ts",
"tf:infra:init": "gcloud config set project deno-registry3-infra && cd terraform_infra && terraform init -backend-config bucket=deno-registry3-infra-terraform",
"tf:infra:plan": "cd terraform_infra && terraform plan -var-file=infra.tfvars -out=infra.tfplan -input=false",
"tf:infra:apply": "cd terraform_infra && terraform apply -input=false infra.tfplan",
"tf:staging:init": "gcloud config set project deno-registry3-staging && cd terraform && terraform init -backend-config bucket=deno-registry3-staging-terraform",
"tf:staging:plan": "cd terraform && terraform plan -var-file=staging.tfvars -var-file=staging.secret.tfvars -out=staging.tfplan -input=false -var \"api_image_id=$API_IMAGE_ID\" -var \"frontend_image_id=$FRONTEND_IMAGE_ID\"",
"tf:staging:apply": "cd terraform && terraform apply -input=false staging.tfplan",
"tf:prod:init": "gcloud config set project deno-registry3-prod && cd terraform && terraform init -backend-config bucket=deno-registry3-prod-terraform",
"tf:prod:plan": "cd terraform && terraform plan -var-file=prod.tfvars -var-file=prod.secret.tfvars -out=prod.tfplan -input=false -var \"api_image_id=$API_IMAGE_ID\" -var \"frontend_image_id=$FRONTEND_IMAGE_ID\"",
"tf:prod:apply": "cd terraform && terraform apply -input=false prod.tfplan",
"e2e:staging": "cd e2e && JSR_URL=https://deno-registry-staging.net/ JSR_API_URL=https://api.deno-registry-staging.net/ deno test -A",
"e2e:prod": "cd e2e && JSR_URL=https://jsr.io/ JSR_API_URL=https://api.jsr.io/ deno test -A"
},
"exclude": [
"target/",
"api/testdata/",
".gcs/",
"frontend/_fresh",
"e2e/vendor"
],
"imports": {
"@deno/gfm": "jsr:@deno/gfm@^0.10.0",
"@std/async": "jsr:@std/async@^1.0.8",
"@std/front-matter": "jsr:@std/front-matter@^1.0.5",
"@std/path": "jsr:@std/path@^1.0.8",
"github-slugger": "npm:github-slugger@^2.0.0"
}
}