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/', |
| 8 | scripts: 'src/js/', |
| 9 | tmp: 'src/.tmp', |
| 10 | dist: 'dist/', |
| 11 | api: '../../ngXosLib/api/', |
| 12 | helpers: '../../ngXosLib/xosHelpers/src/', |
| 13 | static: '../../../xos/core/xoslib/static/', // this is the django static folder |
| 14 | dashboards: '../../../xos/core/xoslib/dashboards/' // this is the django html folder |
| 15 | }; |
| 16 | |
| 17 | wrench.readdirSyncRecursive('./gulp') |
| 18 | .map(function(file) { |
| 19 | require('./gulp/' + file)(options); |
| 20 | }); |
| 21 | |
| 22 | gulp.task('default', function () { |
| 23 | gulp.start('build'); |
| 24 | }); |