You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
686 B
34 lines
686 B
/*******************************
|
|
Build Task
|
|
*******************************/
|
|
|
|
var
|
|
gulp = require('gulp'),
|
|
|
|
// config
|
|
config = require('./config/user'),
|
|
install = require('./config/project/install')
|
|
|
|
;
|
|
|
|
module.exports = function(callback) {
|
|
|
|
console.info('Building Semantic');
|
|
|
|
if( !install.isSetup() ) {
|
|
console.error('Cannot find semantic.json file. Run "gulp install" to set-up Semantic');
|
|
return;
|
|
}
|
|
|
|
// check for right-to-left language
|
|
if(config.rtl === true || config.rtl === 'Yes') {
|
|
gulp.start('build-rtl');
|
|
return;
|
|
}
|
|
|
|
gulp.start('build-javascript');
|
|
gulp.start('build-css');
|
|
gulp.start('build-assets');
|
|
|
|
|
|
};
|