diff --git a/dist/build.js b/dist/build.js index cb4c4cf..e79ad52 100644 --- a/dist/build.js +++ b/dist/build.js @@ -1,10 +1,16 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const log_1 = require("./log"); +const templates_1 = require("./templates"); class Build { constructor() { this.log = (0, log_1.createLog)('build'); this.log.info(`Building site: ${new Date()}`); + this.tmpl = new templates_1.Templates(); + this.main(); + } + async main() { + this.tmpl.build(); } } new Build(); diff --git a/dist/build.js.map b/dist/build.js.map index faef5ca..74f3070 100644 --- a/dist/build.js.map +++ b/dist/build.js.map @@ -1 +1 @@ -{"version":3,"file":"build.js","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":";;AAAA,+BAAkC;AAGlC,MAAM,KAAK;IAEV;QACC,IAAI,CAAC,GAAG,GAAG,IAAA,eAAS,EAAC,OAAO,CAAC,CAAC;QAC9B,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE,EAAE,CAAC,CAAC;IAC/C,CAAC;CACD;AAED,IAAI,KAAK,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"build.js","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":";;AAAA,+BAAkC;AAElC,2CAAwC;AAGxC,MAAM,KAAK;IAGV;QACC,IAAI,CAAC,GAAG,GAAG,IAAA,eAAS,EAAC,OAAO,CAAC,CAAC;QAC9B,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,kBAAkB,IAAI,IAAI,EAAE,EAAE,CAAC,CAAC;QAC9C,IAAI,CAAC,IAAI,GAAG,IAAI,qBAAS,EAAE,CAAC;QAC5B,IAAI,CAAC,IAAI,EAAE,CAAC;IACb,CAAC;IAEO,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;IACnB,CAAC;CACD;AAED,IAAI,KAAK,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/generate.js b/dist/generate.js new file mode 100644 index 0000000..3cc30a4 --- /dev/null +++ b/dist/generate.js @@ -0,0 +1,11 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const log_1 = require("./log"); +class Generate { + constructor() { + this.log = (0, log_1.createLog)('generate'); + this.log.info(`Generating site: ${new Date()}`); + } +} +new Generate(); +//# sourceMappingURL=generate.js.map \ No newline at end of file diff --git a/dist/generate.js.map b/dist/generate.js.map new file mode 100644 index 0000000..406dd58 --- /dev/null +++ b/dist/generate.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate.js","sourceRoot":"","sources":["../src/generate.ts"],"names":[],"mappings":";;AAAA,+BAAkC;AAKlC,MAAM,QAAQ;IAEb;QACC,IAAI,CAAC,GAAG,GAAG,IAAA,eAAS,EAAC,UAAU,CAAC,CAAC;QACjC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,oBAAoB,IAAI,IAAI,EAAE,EAAE,CAAC,CAAC;IACjD,CAAC;CACD;AAED,IAAI,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/src/build.ts b/src/build.ts index c7433dd..a4b1273 100644 --- a/src/build.ts +++ b/src/build.ts @@ -1,13 +1,20 @@ import { createLog } from './log'; import type { Logger } from 'winston'; import { Templates } from './templates'; -import { Database } from 'sqlite3' +import { Database } from 'sqlite3'; class Build { private log : Logger; + private tmpl : Templates; constructor () { this.log = createLog('build'); this.log.info(`Building site: ${new Date()}`); + this.tmpl = new Templates(); + this.main(); + } + + private async main () { + this.tmpl.build(); } }