-
Notifications
You must be signed in to change notification settings - Fork 0
/
deno.json
50 lines (50 loc) · 5.8 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
49
50
{
"tasks": {
"setup": "dataset init people.ds 'sqlite://collection.db' ; dataset init groups.ds 'sqlite://collection.db' ; dataset init funders.ds 'sqlite://collection.db' ; dataset init issn.ds 'sqlite://collection.db'; dataset init doi_prefix.ds 'sqlite://collection.db' ; dataset init subjects.ds 'sqlite://collection.db' ; dataset init test.ds 'sqlite://collection.db' ; dataset init reports.ds 'sqlite://collection.db'",
"cold_api": "datasetd cold_api.yaml",
"cold_api_debug": "datasetd --debug cold_api.yaml",
"cold": "deno run --watch --allow-import --allow-read --allow-net --watch cold.ts --htdocs=./htdocs --baseUrl=http://localhost:8111",
"cold_reports": "deno run --watch --allow-all cold_reports.ts",
"reset_data": "dsquery groups.ds 'delete from groups' ; dsquery people.ds 'delete from people' ; dsquery funders.ds 'delete from funders' ; dsquery issn.ds 'delete from issn'",
"load_data": "deno task import_groups_csv ; deno task import_people_csv ; deno task import_issn_journal_publisher_csv",
"reload_data": "deno task reset_data ; deno task load_data",
"test_dataset": "dsquery test.ds 'delete from test' ; deno test --allow-net dataset_test.ts",
"check": "deno check --allow-import cold.ts ; deno check --allow-import ds_importer.ts ; deno check --allow-import directory_sync.ts ; deno check --allow-import cold_reports.ts ; deno check --allow-import journal_vocabulary.ts",
"dev": "deno run --allow-import --allow-read --allow-net --watch cold.ts --htdocs=./htdocs",
"reload_dev": "deno run --allow-import --allow-read --allow-net --reload --write-lock --watch cold.ts --htdocs=./htdocs",
"start": "deno run --allow-read --allow-net cold.ts",
"build": "deno compile --allow-import --allow-read --allow-net --output bin/cold cold.ts ; deno compile --allow-import --allow-read --allow-net --output bin/directory_sync directory_sync.ts ; deno compile --allow-all --output bin/cold_reports cold_reports.ts ; deno compile --allow-import --allow-net --output bin/journal_vocabulary journal_vocabulary.ts",
"htdocs": "deno run --allow-import --allow-read --allow-write=htdocs build.ts",
"test": "dsquery test.ds 'delete from test' ; deno test --allow-net dataset_test.ts ; deno test options_test.ts ; deno test config_test.ts ; deno test people_test.ts ; deno test groups_test.ts ; deno test cold_test.ts ",
"import_people_csv": "deno run --allow-import --allow-read --allow-net ds_importer.ts people.ds people.csv",
"import_groups_csv": "deno run --allow-import --allow-read --allow-net ds_importer.ts groups.ds groups.csv",
"set_include_in_feeds": "deno run --allow-read --allow-net set_include_in_feeds.ts people.ds people_in_feeds.csv",
"import_issn_journal_publisher_csv": "deno run --allow-import --allow-read --allow-net ds_importer.ts issn.ds issn_journal_publisher.csv",
"fix_advisor_id": "deno run --allow-import --allow-read --allow-net fix_advisor_id.ts people.ds people_final.csv",
"esm:add": "deno run -A https://esm.sh/v135 add",
"esm:update": "deno run -A https://esm.sh/v135 update",
"esm:remove": "deno run -A https://esm.sh/v135 remove",
"release_linux_x86_64": "deno compile --allow-import --allow-read --allow-net --output dist/bin/cold --target x86_64-unknown-linux-gnu cold.ts ; deno compile --allow-import --allow-read --allow-net --output dist/bin/directory_sync --target x86_64-unknown-linux-gnu directory_sync.ts ; deno compile --allow-all --output dist/bin/cold_reports --target x86_64-unknown-linux-gnu cold_reports.ts",
"release_linux_aarch64": "deno compile --allow-import --allow-read --allow-net --output dist/bin/cold --target aarch64-unknown-linux-gnu cold.ts ; deno compile --allow-import --allow-read --allow-net --output dist/bin/directory_sync --target aarch64-unknown-linux-gnu directory_sync.ts ; deno compile --allow-all --output dist/bin/cold_reports --target aarch64-unknown-linux-gnu cold_reports.ts",
"release_macos_x86_64": "deno compile --allow-import --allow-read --allow-net --output dist/bin/cold --target x86_64-apple-darwin cold.ts ; deno compile --allow-import --allow-read --allow-net --output dist/bin/directory_sync --target x86_64-apple-darwin directory_sync.ts ; deno compile --allow-all --output dist/bin/cold_reports --target x86_64-apple-darwin cold_reports.ts",
"release_macos_aarch64": "deno compile --allow-import --allow-read --allow-net --output dist/bin/cold --target aarch64-apple-darwin cold.ts ; deno compile --allow-import --allow-read --allow-net --output dist/bin/directory_sync --target aarch64-apple-darwin directory_sync.ts ; deno compile --allow-all --output dist/bin/cold_reports --target aarch64-apple-darwin cold_reports.ts",
"release_windows_x86_64": "deno compile --allow-import --allow-read --allow-net --output dist/bin/cold.exe --target x86_64-pc-windows-msvc cold.ts ; deno compile --allow-import --allow-read --allow-net --output dist/bin/directory_sync.exe --target x86_64-pc-windows-msvc directory_sync.ts ; deno compile --allow-all --output dist/bin/cold_reports.exe --target x86_64-pc-windows-msvc cold_reports.ts",
"transpile": "deno run --allow-import --allow-env --allow-read --allow-write --allow-net transpile.ts ; deno fmt htdocs/js/directory_client.js"
},
"imports": {
"@b-fuze/deno-dom": "jsr:@b-fuze/deno-dom@^0.1.47",
"@david/dax": "jsr:@david/dax@^0.42.0",
"@deno/emit": "jsr:@deno/emit@^0.46.0",
"@std/assert": "jsr:@std/assert@^1.0.0",
"@std/cli": "jsr:@std/cli@^0.224.7",
"@std/csv": "jsr:@std/csv@^0.224.3",
"@std/dotenv": "jsr:@std/dotenv@^0.224.1",
"@std/fmt": "jsr:@std/fmt@^0.225.4",
"@std/front-matter": "jsr:@std/front-matter@^0.224.3",
"@std/fs": "jsr:@std/fs@^0.229.3",
"@std/http": "jsr:@std/http@^0.224.5",
"@std/path": "jsr:@std/path@^1.0.0",
"@std/uuid": "jsr:@std/uuid@^1.0.4",
"@std/yaml": "jsr:@std/yaml@^0.224.3"
}
}