wishthis/node_modules/fomantic-ui/tasks/build.js

24 lines
522 B
JavaScript
Raw Normal View History

2022-01-13 13:00:31 +00:00
/*******************************
* Build Task
*******************************/
2023-08-17 09:47:40 +00:00
const
// dependencies
gulp = require('gulp'),
2022-01-13 13:00:31 +00:00
2023-08-17 09:47:40 +00:00
// config
install = require('./config/project/install')
2022-01-13 13:00:31 +00:00
;
module.exports = function (callback) {
2023-08-17 09:47:40 +00:00
console.info('Building Fomantic');
2022-01-13 13:00:31 +00:00
2023-08-17 09:47:40 +00:00
if (!install.isSetup()) {
console.error('Cannot find semantic.json. Run "gulp install" to set-up Fomantic');
2022-01-13 13:00:31 +00:00
2023-08-17 09:47:40 +00:00
return 1;
}
2022-01-13 13:00:31 +00:00
2023-08-17 09:47:40 +00:00
gulp.series('build-css', 'build-javascript', 'build-assets')(callback);
2022-01-13 13:00:31 +00:00
};