mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-18 06:35:20 +02:00
Move all the build scripts into scripts/ folder, ES6ify more stuff
This commit is contained in:
@@ -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}`));
|
||||
});
|
||||
Reference in New Issue
Block a user