1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-12 03:34:12 +02:00
This commit is contained in:
Pomax
2017-03-26 11:24:40 -07:00
parent d4b8dcd396
commit 6fcf9c9378
11 changed files with 3813 additions and 192 deletions

11
tools/buildmark.js Normal file
View File

@@ -0,0 +1,11 @@
var fs = require('fs');
var markfile = '.buildmark';
var resolve = process.argv.indexOf('resolve') > -1;
if (!resolve) {
fs.writeFileSync(markfile, Date.now());
} else {
let mark = parseInt(fs.readFileSync(markfile).toString());
console.log(`Build ran in ${(Date.now() - mark)/1000} seconds.`);
fs.unlinkSync(markfile);
}