diff options
| -rw-r--r-- | etc/.gitkeep (renamed from docs/.gitkeep) | 0 | ||||
| -rw-r--r-- | etc/informatik1.ics (renamed from docs/informatik1.ics) | 0 | ||||
| -rw-r--r-- | etc/sample.htm (renamed from sample.htm) | 0 | ||||
| -rw-r--r-- | package.json | 2 | ||||
| -rw-r--r-- | src/GoogleCalendar.ts (renamed from GoogleCalendar.ts) | 0 | ||||
| -rw-r--r-- | src/ICal.ts (renamed from ICal.ts) | 2 | ||||
| -rw-r--r-- | src/SplusParser.ts (renamed from SplusParser.ts) | 0 | ||||
| -rw-r--r-- | src/index.ts (renamed from index.ts) | 2 |
8 files changed, 3 insertions, 3 deletions
diff --git a/docs/.gitkeep b/etc/.gitkeep index e69de29..e69de29 100644 --- a/docs/.gitkeep +++ b/etc/.gitkeep diff --git a/docs/informatik1.ics b/etc/informatik1.ics index 482e313..482e313 100644 --- a/docs/informatik1.ics +++ b/etc/informatik1.ics diff --git a/sample.htm b/etc/sample.htm index 6e4f0d9..6e4f0d9 100644 --- a/sample.htm +++ b/etc/sample.htm diff --git a/package.json b/package.json index a23d5ca..65028ed 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "main": "index.js", "license": "MIT", "scripts": { - "start": "ts-node index.ts" + "start": "ts-node src/index.ts" }, "dependencies": { "cheerio": "^1.0.0-rc.2", diff --git a/GoogleCalendar.ts b/src/GoogleCalendar.ts index 2376c6b..2376c6b 100644 --- a/GoogleCalendar.ts +++ b/src/GoogleCalendar.ts @@ -3,7 +3,7 @@ import * as ical from 'ical-generator'; import * as crypto from 'crypto'; import * as fs from 'fs'; -const TARGET_FILE = 'docs/informatik1.ics'; +const TARGET_FILE = 'etc/informatik1.ics'; const DOMAIN = 'schneefux.github.io'; // TODO config management const sha256 = (x) => crypto.createHash('sha256').update(x, 'utf8').digest('hex'); diff --git a/SplusParser.ts b/src/SplusParser.ts index be693fd..be693fd 100644 --- a/SplusParser.ts +++ b/src/SplusParser.ts @@ -22,7 +22,7 @@ get(splusUrl, (res) => { const baseDate = new Date(2018, 3, 23); -readFile('sample.htm', (err, data) => { +readFile('etc/sample.htm', (err, data) => { const lectures = new SplusParser(data.toString()).getLectures(lecture => { // Filter some lectures out if (lecture.title === '') return false; |
