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

Added a quick build task and created the warnings component

This commit is contained in:
Scott Tolksdorf
2017-01-14 13:53:09 -08:00
parent 306e4f024c
commit 6e86d9c123
8 changed files with 121 additions and 12 deletions

View File

@@ -11,13 +11,7 @@ const Proj = require('./project.json');
Promise.resolve()
.then(jsx('homebrew', './client/homebrew/homebrew.jsx', Proj.libs, ['shared']))
.then(() => {
console.log('here2');
})
.then(less('homebrew', './shared'))
.then(() => {
console.log('here?');
})
.then(assets(Proj.assets, ['./shared', './client']))
.then(livereload())
.then(server('./server.js', ['server']))

17
scripts/quick.js Normal file
View File

@@ -0,0 +1,17 @@
const label = 'quick';
console.time(label);
const jsx = require('vitreum/steps/jsx.js').partial;
const less = require('vitreum/steps/less.js').partial;
const server = require('vitreum/steps/server.watch.js').partial;
const Proj = require('./project.json');
Promise.resolve()
.then(jsx('homebrew', './client/homebrew/homebrew.jsx', Proj.libs, ['./shared']))
.then(less('homebrew', ['./shared']))
.then(jsx('admin', './client/admin/admin.jsx', Proj.libs, ['./shared']))
.then(less('admin', ['./shared']))
.then(server('./server.js', ['server']))
.then(console.timeEnd.bind(console, label))
.catch(console.error);