add logs
This commit is contained in:
parent
cc5ab4227a
commit
0b0a5efe5c
1 changed files with 6 additions and 1 deletions
|
@ -34,9 +34,14 @@ class App {
|
||||||
const app = new App();
|
const app = new App();
|
||||||
|
|
||||||
const start = async () => {
|
const start = async () => {
|
||||||
|
const outputFileLocation = 'maccabi-haifa-fc.ics';
|
||||||
|
console.info("START APP!")
|
||||||
const games = await app.gameSource.getGamesFromHaifa();
|
const games = await app.gameSource.getGamesFromHaifa();
|
||||||
|
console.info("NEW GAMES FOUND!")
|
||||||
const icsEvents = app.ics.generateIcsOutputFromGames(games);
|
const icsEvents = app.ics.generateIcsOutputFromGames(games);
|
||||||
fs.writeFileSync('output.ics', icsEvents);
|
console.info("NEW ICS EVENTS GENERATED!" )
|
||||||
|
fs.writeFileSync(outputFileLocation, icsEvents);
|
||||||
|
console.log("ICS FILE GENERATED In: " + outputFileLocation)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue