Matteo Scandolo | 8cc22e4 | 2016-04-12 09:00:04 -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 | css: 'src/css/', |
| 9 | sass: 'src/sass/', |
| 10 | scripts: 'src/js/', |
| 11 | tmp: 'src/.tmp', |
| 12 | dist: 'dist/', |
| 13 | api: '../../ngXosLib/api/', |
Matteo Scandolo | 1ba8b30 | 2016-04-14 10:53:30 -0700 | [diff] [blame] | 14 | helpers: '../../../xos/core/xoslib/static/js/vendor/', |
Matteo Scandolo | b7a86dc | 2016-04-14 11:46:30 -0700 | [diff] [blame] | 15 | helpersSourceMaps: '../../ngXosLib/xosHelpers/.tmp/maps/', |
Matteo Scandolo | 8cc22e4 | 2016-04-12 09:00:04 -0700 | [diff] [blame] | 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 | }); |