1
0
mirror of https://github.com/hacks-guide/Guide_3DS.git synced 2025-08-25 09:30:58 +02:00

mm upgrade and feature updates

This commit is contained in:
Plailect
2017-09-28 17:42:38 -04:00
parent 4e3910236d
commit 747107cb73
232 changed files with 10723 additions and 8990 deletions

17
banner.js Normal file
View File

@@ -0,0 +1,17 @@
const fs = require('fs');
const pkg = require('./package.json');
const filename = 'assets/js/main.min.js';
const script = fs.readFileSync(filename);
const padStart = str => ('0' + str).slice(-2)
const dateObj = new Date;
const date = `${dateObj.getFullYear()}-${padStart(dateObj.getMonth() + 1)}-${padStart(dateObj.getDate())}`;
const banner = `/*!
* Minimal Mistakes Jekyll Theme ${pkg.version} by ${pkg.author}
* Copyright ${dateObj.getFullYear()} Michael Rose - mademistakes.com | @mmistakes
* Licensed under ${pkg.license}
*/
`;
if (script.slice(0, 3) != '/**') {
fs.writeFileSync(filename, banner + script);
}