wishthis/node_modules/fomantic-ui/gulpfile.js

43 lines
831 B
JavaScript
Raw Normal View History

2022-01-13 13:00:31 +00:00
/*******************************
* Set-up
*******************************/
2023-08-17 09:47:40 +00:00
const
gulp = require('gulp'),
2022-01-13 13:00:31 +00:00
2023-08-17 09:47:40 +00:00
// read user config to know what task to load
config = require('./tasks/config/user'),
2022-01-13 13:00:31 +00:00
2023-08-17 09:47:40 +00:00
admin = require('./tasks/collections/admin'),
rtl = require('./tasks/collections/rtl')
;
2022-01-13 13:00:31 +00:00
/*******************************
* Tasks
*******************************/
require('./tasks/collections/build')(gulp);
require('./tasks/collections/various')(gulp);
require('./tasks/collections/install')(gulp);
gulp.task('default', gulp.series('check-install'));
2023-08-17 09:47:40 +00:00
/* --------------
2022-01-13 13:00:31 +00:00
Docs
2023-08-17 09:47:40 +00:00
--------------- */
2022-01-13 13:00:31 +00:00
require('./tasks/collections/docs')(gulp);
2023-08-17 09:47:40 +00:00
/* --------------
2022-01-13 13:00:31 +00:00
RTL
2023-08-17 09:47:40 +00:00
--------------- */
2022-01-13 13:00:31 +00:00
if (config.rtl) {
2023-08-17 09:47:40 +00:00
rtl(gulp);
2022-01-13 13:00:31 +00:00
}
/* Admin Tasks */
if (config.admin) {
2023-08-17 09:47:40 +00:00
admin(gulp);
2022-01-13 13:00:31 +00:00
}