UNPKG

831 BJavaScriptView Raw
1/*******************************
2 * Set-up
3 *******************************/
4
5const
6 gulp = require('gulp'),
7
8 // read user config to know what task to load
9 config = require('./tasks/config/user'),
10
11 admin = require('./tasks/collections/admin'),
12 rtl = require('./tasks/collections/rtl')
13;
14
15/*******************************
16 * Tasks
17 *******************************/
18
19require('./tasks/collections/build')(gulp);
20require('./tasks/collections/various')(gulp);
21require('./tasks/collections/install')(gulp);
22
23gulp.task('default', gulp.series('check-install'));
24
25/* --------------
26 Docs
27--------------- */
28
29require('./tasks/collections/docs')(gulp);
30
31/* --------------
32 RTL
33--------------- */
34
35if (config.rtl) {
36 rtl(gulp);
37}
38
39/* Admin Tasks */
40if (config.admin) {
41 admin(gulp);
42}