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:
@@ -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
17
scripts/quick.js
Normal 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);
|
||||
Reference in New Issue
Block a user