Skip to content

Commit

Permalink
update: cleaning up
Browse files Browse the repository at this point in the history
  • Loading branch information
Rooyca committed Mar 13, 2024
1 parent 7581dfc commit 3b3e5b8
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 60 deletions.
5 changes: 1 addition & 4 deletions builder/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ for (let index = 0; index < sequentialNumbers.length; index++) {
console.log(`Today's movie: ${movieToday.title}`);
const fs = require('fs');

// Read data from current.json
// const data = JSON.parse(movieToday);

// Read the HTML template
let html = fs.readFileSync('./src/index.html', 'utf8');

Expand All @@ -50,7 +47,7 @@ for (let index = 0; index < sequentialNumbers.length; index++) {
html = html.replace('__LENGTH__', movieToday.length);
html = html.replace('__DATE__', new Date().toDateString());

// Write the populated HTML to a new file
// Write the populated HTML
fs.writeFileSync('./src/index.html', html);
break;
}
Expand Down
20 changes: 0 additions & 20 deletions builder/populate-html.js

This file was deleted.

Empty file removed db.json
Empty file.
9 changes: 0 additions & 9 deletions src/current.json

This file was deleted.

27 changes: 0 additions & 27 deletions src/main.js

This file was deleted.

0 comments on commit 3b3e5b8

Please sign in to comment.