Jeremy Mowery | 6efeb7a | 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 | ee13991 | 2016-04-17 19:20:01 -0700 | [diff] [blame] | 8 | css: 'src/css/', |
Matteo Scandolo | 195dde9 | 2016-07-25 16:43:16 -0700 | [diff] [blame] | 9 | icon: 'src/icons', |
Matteo Scandolo | e993b88 | 2016-05-17 17:30:14 -0700 | [diff] [blame] | 10 | sass: 'src/sass/', |
Jeremy Mowery | 6efeb7a | 2016-02-25 09:32:00 -0700 | [diff] [blame] | 11 | scripts: 'src/js/', |
| 12 | tmp: 'src/.tmp', |
| 13 | dist: 'dist/', |
| 14 | api: '../../ngXosLib/api/', |
Matteo Scandolo | 195dde9 | 2016-07-25 16:43:16 -0700 | [diff] [blame] | 15 | helpers: './src/vendor/ng-xos-lib/dist/', |
Jeremy Mowery | 6efeb7a | 2016-02-25 09:32:00 -0700 | [diff] [blame] | 16 | static: '../../../xos/core/xoslib/static/', // this is the django static folder |
| 17 | dashboards: '../../../xos/core/xoslib/dashboards/' // this is the django html folder |
| 18 | }; |
| 19 | |
| 20 | wrench.readdirSyncRecursive('./gulp') |
| 21 | .map(function(file) { |
| 22 | require('./gulp/' + file)(options); |
| 23 | }); |
| 24 | |
| 25 | gulp.task('default', function () { |
| 26 | gulp.start('build'); |
| 27 | }); |