Jeremy Mowery | 159f97b | 2016-02-25 09:32:00 -0700 | [diff] [blame] | 1 | 'use strict'; |
| 2 | |
| 3 | var gulp = require('gulp'); |
| 4 | var wrench = require('wrench'); |
| 5 | |
| 6 | var options = { |
| 7 | src: 'src/', |
Jeremy Mowery | 5ab3415 | 2016-04-17 19:20:01 -0700 | [diff] [blame] | 8 | css: 'src/css/', |
Matteo Scandolo | 9ef11a8 | 2016-05-17 17:30:14 -0700 | [diff] [blame] | 9 | sass: 'src/sass/', |
Jeremy Mowery | 159f97b | 2016-02-25 09:32:00 -0700 | [diff] [blame] | 10 | scripts: 'src/js/', |
| 11 | tmp: 'src/.tmp', |
| 12 | dist: 'dist/', |
| 13 | api: '../../ngXosLib/api/', |
Matteo Scandolo | 9ef11a8 | 2016-05-17 17:30:14 -0700 | [diff] [blame] | 14 | helpers: '../../../xos/core/xoslib/static/js/vendor/', |
Jeremy Mowery | 159f97b | 2016-02-25 09:32:00 -0700 | [diff] [blame] | 15 | static: '../../../xos/core/xoslib/static/', // this is the django static folder |
| 16 | dashboards: '../../../xos/core/xoslib/dashboards/' // this is the django html folder |
| 17 | }; |
| 18 | |
| 19 | wrench.readdirSyncRecursive('./gulp') |
| 20 | .map(function(file) { |
| 21 | require('./gulp/' + file)(options); |
| 22 | }); |
| 23 | |
| 24 | gulp.task('default', function () { |
| 25 | gulp.start('build'); |
| 26 | }); |