mirror of
https://github.com/naturalcrit/naturalcrit.git
synced 2025-10-27 07:29:54 +00:00
17 lines
598 B
JavaScript
17 lines
598 B
JavaScript
const label = 'dev';
|
|
console.time(label);
|
|
|
|
const _ = require('lodash');
|
|
const steps = require('./steps');
|
|
const Proj = require('./project.json');
|
|
|
|
Promise.resolve()
|
|
.then(()=>Promise.all(_.map(Proj.apps, (path, name)=>
|
|
steps.jsxWatch(name, path, {libs : Proj.libs, shared : Proj.shared})
|
|
.then((deps)=>steps.lessWatch(name, {shared : Proj.shared}, deps))
|
|
)))
|
|
.then(()=>steps.assetsWatch(Proj.assets, ['./client', './shared']))
|
|
.then(()=>steps.livereload())
|
|
.then(()=>steps.serverWatch('./server.js', ['server']))
|
|
.then(()=>console.timeEnd(label))
|
|
.catch((err)=>console.error(err)); |