mirror of
https://github.com/stolksdorf/homebrewery.git
synced 2025-12-15 23:26:01 +00:00
Added a quick build task and created the warnings component
This commit is contained in:
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