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'), // eslint-disable-line import/extensions
|
2022-01-13 13:00:31 +00:00
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
rtl = require('./tasks/collections/rtl') // eslint-disable-line import/extensions
|
|
|
|
;
|
2022-01-13 13:00:31 +00:00
|
|
|
|
|
|
|
/*******************************
|
|
|
|
* Tasks
|
|
|
|
*******************************/
|
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
require('./tasks/collections/build')(gulp); // eslint-disable-line import/extensions
|
|
|
|
require('./tasks/collections/various')(gulp); // eslint-disable-line import/extensions
|
|
|
|
require('./tasks/collections/install')(gulp); // eslint-disable-line import/extensions
|
2022-01-13 13:00:31 +00:00
|
|
|
|
|
|
|
gulp.task('default', gulp.series('watch'));
|
|
|
|
|
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
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
require('./tasks/collections/docs')(gulp); // eslint-disable-line import/extensions
|
2022-01-13 13:00:31 +00:00
|
|
|
|
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
|
|
|
}
|