mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-01-31 07:16:17 +00:00
Moved new build process out of gulp folder
This commit is contained in:
parent
e80428ec2b
commit
56d5f33453
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const ROOT = path.resolve(__dirname, '../..');
|
const ROOT = path.resolve(__dirname, '..');
|
||||||
const fs = require('fs-extra');
|
const fs = require('fs-extra');
|
||||||
const { is: _is } = require('./lib/util');
|
const { is: _is } = require('./lib/util');
|
||||||
|
|
@ -3,10 +3,10 @@ const { series, watch } = require('gulp');
|
|||||||
|
|
||||||
/** **************************************************************************************************************** **/
|
/** **************************************************************************************************************** **/
|
||||||
|
|
||||||
var content = require('./content');
|
var build = require('../build');
|
||||||
|
|
||||||
const devBuildTask = content.everything();
|
const devBuildTask = build.everything();
|
||||||
const prodBuildTask = content.everything(true);
|
const prodBuildTask = build.everything(true);
|
||||||
|
|
||||||
var cleanTask = require('./clean');
|
var cleanTask = require('./clean');
|
||||||
exports.clean = cleanTask;
|
exports.clean = cleanTask;
|
||||||
@ -44,12 +44,10 @@ function watcher () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function server () {
|
function server () {
|
||||||
|
|
||||||
var forever = require('forever');
|
var forever = require('forever');
|
||||||
var srv = new forever.Monitor('server.js');
|
var srv = new forever.Monitor('server.js');
|
||||||
srv.start();
|
srv.start();
|
||||||
forever.startServer(srv);
|
forever.startServer(srv);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.watch = series(devBuildTask, watcher);
|
exports.watch = series(devBuildTask, watcher);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user