forked from jsr-io/jsr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deno.json
47 lines (45 loc) · 3.49 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
{
"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: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 start",
"prod:frontend": "deno run -A --watch ./tools/prod_proxy.ts & cd frontend && API_ROOT=https://api.jsr.io deno task start",
"lint": "deno task lint:frontend && deno task lint:license",
"lint:frontend": "cd frontend && deno lint && deno check --allow-import=googleapis.deno.dev,deno.land,jsr.io,esm.sh main.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"
],
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "npm:preact"
},
"imports": {
"@deno/gfm": "jsr:@deno/gfm@^0.8.0",
"github-slugger": "npm:github-slugger@^2.0",
"std/": "https://deno.land/[email protected]/"
}
}