Matteo Scandolo | ecf088a | 2016-10-20 10:25:34 +0200 | [diff] [blame] | 1 | 'use strict'; |
| 2 | |
| 3 | var gulp = require('gulp'); |
| 4 | var wrench = require('wrench'); |
| 5 | |
| 6 | var options = { |
| 7 | src: 'src/', |
| 8 | css: 'src/css/', |
| 9 | icon: 'src/icons', |
| 10 | sass: 'src/sass/', |
| 11 | scripts: 'src/js/', |
| 12 | tmp: 'src/.tmp', |
| 13 | dist: 'dist/', |
| 14 | api: '../../ngXosLib/api/', |
| 15 | helpers: './src/vendor/ng-xos-lib/dist/', |
| 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 | }); |