mirror of
https://github.com/stolksdorf/homebrewery.git
synced 2025-12-12 22:15:55 +00:00
20 lines
745 B
JavaScript
20 lines
745 B
JavaScript
const label = 'build';
|
|
console.time(label);
|
|
|
|
const clean = require('vitreum/steps/clean.js');
|
|
const jsx = require('vitreum/steps/jsx.js').partial;
|
|
const lib = require('vitreum/steps/libs.js').partial;
|
|
const less = require('vitreum/steps/less.js').partial;
|
|
const asset = require('vitreum/steps/assets.js').partial;
|
|
|
|
const Proj = require('./project.json');
|
|
|
|
clean()
|
|
.then(lib(Proj.libs))
|
|
.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(asset(Proj.assets, ['./shared', './client']))
|
|
.then(console.timeEnd.bind(console, label))
|
|
.catch(console.error); |