Move all the build scripts into scripts/ folder, ES6ify more stuff

This commit is contained in:
Bryan Housel
2020-01-28 15:00:02 -05:00
parent aadbddba2f
commit ce7cac6738
8 changed files with 430 additions and 441 deletions
+16
View File
@@ -0,0 +1,16 @@
/* eslint-disable no-console */
const colors = require('colors/safe');
const gaze = require('gaze');
const StaticServer = require('static-server');
const buildCSS = require('./build_css.js');
gaze(['css/**/*.css'], (err, watcher) => {
watcher.on('all', () => buildCSS());
});
const server = new StaticServer({ rootPath: process.cwd(), port: 8080, followSymlink: true });
server.start(() => {
console.log(colors.yellow(`Listening on ${server.port}`));
});