Matteo Scandolo | be9b13d | 2016-01-21 11:21:03 -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 | 16763e9 | 2016-02-24 15:40:22 -0800 | [diff] [blame] | 8 | css: 'src/css/', |
Matteo Scandolo | 871f9cd | 2016-03-29 14:06:13 -0700 | [diff] [blame] | 9 | sass: 'src/sass/', |
Matteo Scandolo | be9b13d | 2016-01-21 11:21:03 -0800 | [diff] [blame] | 10 | scripts: 'src/js/', |
| 11 | tmp: 'src/.tmp', |
| 12 | dist: 'dist/', |
| 13 | api: '../../ngXosLib/api/', |
| 14 | helpers: '../../ngXosLib/xosHelpers/src/', |
Matteo Scandolo | 16763e9 | 2016-02-24 15:40:22 -0800 | [diff] [blame] | 15 | static: '../../../xos/core/xoslib/static/', // this is the django static folder from dev environment |
Matteo Scandolo | be9b13d | 2016-01-21 11:21:03 -0800 | [diff] [blame] | 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 | }); |