Matteo Scandolo | e3de73d | 2015-12-04 10:14:40 -0800 | [diff] [blame] | 1 | 'use strict'; |
| 2 | |
| 3 | var gulp = require('gulp'); |
| 4 | var wrench = require('wrench'); |
| 5 | |
| 6 | var options = { |
| 7 | src: 'src/', |
Matteo Scandolo | d9e1c41 | 2015-12-15 14:37:27 -0800 | [diff] [blame] | 8 | css: 'src/css/', |
Matteo Scandolo | e3de73d | 2015-12-04 10:14:40 -0800 | [diff] [blame] | 9 | scripts: 'src/js/', |
| 10 | tmp: 'src/.tmp', |
| 11 | dist: 'dist/', |
| 12 | api: '../../ngXosLib/api/', |
| 13 | helpers: '../../ngXosLib/xosHelpers/src/', |
Matteo Scandolo | 699d6b8 | 2016-01-20 07:42:13 -0800 | [diff] [blame] | 14 | static: '../../../xos/core/xoslib/static/', // this is the django static folder |
| 15 | dashboards: '../../../xos/core/xoslib/dashboards/' // this is the django html folder |
Matteo Scandolo | e3de73d | 2015-12-04 10:14:40 -0800 | [diff] [blame] | 16 | }; |
| 17 | |
| 18 | wrench.readdirSyncRecursive('./gulp') |
| 19 | .map(function(file) { |
| 20 | require('./gulp/' + file)(options); |
| 21 | }); |
| 22 | |
| 23 | gulp.task('default', function () { |
| 24 | gulp.start('build'); |
| 25 | }); |