-
Notifications
You must be signed in to change notification settings - Fork 2
/
deno.jsonc
16 lines (16 loc) · 1.25 KB
/
deno.jsonc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
"imports": {
"deno_dom/": "https://deno.land/x/[email protected]/",
"preact": "https://esm.sh/[email protected]",
"preact/": "https://esm.sh/[email protected]/",
"std/": "https://deno.land/[email protected]/"
},
"tasks": {
"bookmarklet:build": "deno bundle ./webreg-scraping/bookmarklet/index.tsx | terser --module > ./webreg-scraping/bookmarklet/dist/bookmarklet.min.js",
"scheduleofclasses:scrape": "deno run --allow-net=act.ucsd.edu ./scheduleofclasses/scrape.ts $TERM > ./scheduleofclasses/terms/$TERM.json",
"classrooms:build": "deno bundle ./classrooms/index.tsx | terser --module > ./classrooms/public/index.min.js",
"classrooms:watch": "echo \"\n>>> http://localhost:8080/public/ <<<\n\" && http-server ./classrooms/ -c-1 -s & deno bundle --watch ./classrooms/index.tsx ./classrooms/public/index.min.js",
"classrooms:to-file": "deno run --allow-read=./scheduleofclasses/terms/$TERM.json classrooms/scripts/coursesToFile.ts $TERM abridged > classrooms/data/classrooms-$TERM.txt && deno run --allow-read=./scheduleofclasses/terms/$TERM.json classrooms/scripts/coursesToFile.ts $TERM > classrooms/data/classrooms-$TERM-full.txt",
"classrooms:scrape-to-file": "deno task scheduleofclasses:scrape && deno task classrooms:to-file"
}
}