Moved files
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"tasks": {
|
||||
"dev": "deno run --watch main.ts"
|
||||
"dev": "deno run --watch src/main.ts"
|
||||
},
|
||||
"imports": {
|
||||
"@std/assert": "jsr:@std/assert@1",
|
||||
|
||||
2
run.sh
2
run.sh
@@ -1 +1 @@
|
||||
deno run --env-file=.env --allow-net=dancing.thasky.one:443 -E main.ts
|
||||
deno run --env-file=.env --allow-net=dancing.thasky.one:443 -E src/main.ts
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Mwn, RecentChange } from 'npm:mwn'
|
||||
import process from "node:process";
|
||||
import { parseSummary } from "./parse.ts";
|
||||
import { bucketEvents, writeSections } from "./write.ts";
|
||||
import { bucketEvents, writeSections } from "./write_descriptions.ts";
|
||||
|
||||
async function getWorkshopVideos(bot: Mwn): Promise<string[]> {
|
||||
const response = await bot.request({
|
||||
@@ -119,7 +119,8 @@ async function main() {
|
||||
await watchdog(bot, async (paths) => {
|
||||
const relevantFiles = await getWorkshopVideos(bot)
|
||||
const { pages: d, errors: parseErrors } = await fetchPages(relevantFiles, bot)
|
||||
const t = writeSections(bucketEvents(d))
|
||||
const bucketedEvents = bucketEvents(d)
|
||||
const t = writeSections(bucketedEvents)
|
||||
|
||||
const trigger_summary = 'Triggered by changes to ' + paths.map(v => `[[${v}]]`).join(", ")
|
||||
const error_summary = parseErrors.join("\n")
|
||||
@@ -2,7 +2,6 @@ import { VideoDescription } from "./main.ts";
|
||||
import { camelToTitleCase } from "./util_string.ts";
|
||||
|
||||
|
||||
|
||||
export function singleVideoDescription(video: VideoDescription): string {
|
||||
const teachersList = video.teachers.map(v => "[[" + v + "]]").join(" & ");
|
||||
|
||||
Reference in New Issue
Block a user