Matteo Scandolo | 68c2e72 | 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 | 6c6b928 | 2015-12-15 14:37:27 -0800 | [diff] [blame] | 8 | css: 'src/css/', |
Matteo Scandolo | cdb3e84 | 2016-07-25 16:43:16 -0700 | [diff] [blame^] | 9 | icon: 'src/icons', |
Matteo Scandolo | 54bc5f7 | 2016-05-18 14:06:45 -0700 | [diff] [blame] | 10 | sass: 'src/sass/', |
Matteo Scandolo | 68c2e72 | 2015-12-04 10:14:40 -0800 | [diff] [blame] | 11 | scripts: 'src/js/', |
| 12 | tmp: 'src/.tmp', |
| 13 | dist: 'dist/', |
| 14 | api: '../../ngXosLib/api/', |
Matteo Scandolo | cdb3e84 | 2016-07-25 16:43:16 -0700 | [diff] [blame^] | 15 | helpers: './src/vendor/ng-xos-lib/dist/', |
Matteo Scandolo | 54bc5f7 | 2016-05-18 14:06:45 -0700 | [diff] [blame] | 16 | static: '../../../xos/core/xoslib/static/', // this is the django static folder |
Matteo Scandolo | ea2448d | 2016-01-20 07:42:13 -0800 | [diff] [blame] | 17 | dashboards: '../../../xos/core/xoslib/dashboards/' // this is the django html folder |
Matteo Scandolo | 68c2e72 | 2015-12-04 10:14:40 -0800 | [diff] [blame] | 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 | }); |