Moved new build process out of gulp folder

This commit is contained in:
Jocelyn Badgley (Twipped) 2020-02-28 10:33:39 -08:00
parent e80428ec2b
commit 56d5f33453
25 changed files with 4 additions and 6 deletions

View File

@ -1,6 +1,6 @@
const path = require('path');
const ROOT = path.resolve(__dirname, '../..');
const ROOT = path.resolve(__dirname, '..');
const fs = require('fs-extra');
const { is: _is } = require('./lib/util');

View File

@ -3,10 +3,10 @@ const { series, watch } = require('gulp');
/** **************************************************************************************************************** **/
var content = require('./content');
var build = require('../build');
const devBuildTask = content.everything();
const prodBuildTask = content.everything(true);
const devBuildTask = build.everything();
const prodBuildTask = build.everything(true);
var cleanTask = require('./clean');
exports.clean = cleanTask;
@ -44,12 +44,10 @@ function watcher () {
}
function server () {
var forever = require('forever');
var srv = new forever.Monitor('server.js');
srv.start();
forever.startServer(srv);
}
exports.watch = series(devBuildTask, watcher);