1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2025-12-15 17:57:30 +00:00

Updating build scripts and libraries

This commit is contained in:
Scott Tolksdorf
2018-04-08 23:36:26 -04:00
committed by Trevor Buckner
parent c8875cff94
commit f4985b68ca
5 changed files with 3474 additions and 2820 deletions

View File

@@ -1,23 +1,22 @@
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 jsx = require('vitreum/steps/jsx.watch.js');
const less = require('vitreum/steps/less.watch.js');
const assets = require('vitreum/steps/assets.watch.js');
const server = require('vitreum/steps/server.watch.js');
const livereload = require('vitreum/steps/livereload.js');
const Proj = require('./project.json');
Promise.resolve()
.then(jsx('homebrew', './client/homebrew/homebrew.jsx', Proj.libs, './shared'))
.then(less('homebrew', './shared'))
.then(()=>jsx('homebrew', './client/homebrew/homebrew.jsx', {libs: Proj.libs, shared : ['./shared']}))
.then((deps)=>less('homebrew', {shared: ['./shared']}, deps))
.then(()=>jsx('admin', './client/admin/admin.jsx', {libs: Proj.libs, shared: ['./shared']}))
.then((deps)=>less('admin', {shared: ['./shared']}, deps))
.then(jsx('admin', './client/admin/admin.jsx', Proj.libs, './shared'))
.then(less('admin', './shared'))
.then(assets(Proj.assets, ['./shared', './client']))
.then(livereload())
.then(server('./server.js', ['server']))
.then(()=>assets(Proj.assets, ['./shared', './client']))
.then(()=>livereload())
.then(()=>server('./server.js', ['server']))
.then(console.timeEnd.bind(console, label))
.catch(console.error);