mirror of
https://github.com/stolksdorf/homebrewery.git
synced 2025-12-12 22:15:55 +00:00
19 lines
722 B
JavaScript
19 lines
722 B
JavaScript
const label = 'dev';
|
|
console.time(label);
|
|
|
|
const jsx = require('vitreum/steps/jsx.watch.js').partial;
|
|
const less = require('vitreum/steps/less.watch.js').partial;
|
|
const assets = require('vitreum/steps/assets.watch.js').partial;
|
|
const server = require('vitreum/steps/server.watch.js').partial;
|
|
const livereload = require('vitreum/steps/livereload.js').partial;
|
|
|
|
const Proj = require('./project.json');
|
|
|
|
Promise.resolve()
|
|
.then(jsx('homebrew', './client/homebrew/homebrew.jsx', Proj.libs, ['shared']))
|
|
.then(less('homebrew', './shared'))
|
|
.then(assets(Proj.assets, ['./shared', './client']))
|
|
.then(livereload())
|
|
.then(server('./server.js', ['server']))
|
|
.then(console.timeEnd.bind(console, label))
|
|
.catch(console.error) |