Matteo Scandolo | 3bb37fe | 2015-11-04 12:41:13 +0100 | [diff] [blame] | 1 | 'use strict'; |
| 2 | |
| 3 | var gulp = require('gulp'); |
| 4 | var wrench = require('wrench'); |
Matteo Scandolo | 0c989e0 | 2016-05-31 16:57:50 -0700 | [diff] [blame^] | 5 | var path = require('path'); |
Matteo Scandolo | 3bb37fe | 2015-11-04 12:41:13 +0100 | [diff] [blame] | 6 | |
| 7 | var options = { |
Matteo Scandolo | f043aae | 2016-01-20 16:52:51 -0800 | [diff] [blame] | 8 | ngXosVendor: '../../xos/core/xoslib/static/js/vendor/', //save here the minfied vendor file, this is automatically loaded in the django page |
Matteo Scandolo | e53ee38 | 2016-04-25 10:11:56 -0700 | [diff] [blame] | 9 | ngXosStyles: '../../xos/core/static/', // TODO move in xoslib |
Matteo Scandolo | 717352a | 2016-04-13 17:23:28 -0700 | [diff] [blame] | 10 | xosHelperSource: './xosHelpers/src/', |
Matteo Scandolo | 1dab3e0 | 2016-04-14 11:46:30 -0700 | [diff] [blame] | 11 | xosHelperTmp: './xosHelpers/.tmp/', |
Matteo Scandolo | 717352a | 2016-04-13 17:23:28 -0700 | [diff] [blame] | 12 | docs: './docs' |
Matteo Scandolo | 3bb37fe | 2015-11-04 12:41:13 +0100 | [diff] [blame] | 13 | }; |
| 14 | |
Matteo Scandolo | 0c989e0 | 2016-05-31 16:57:50 -0700 | [diff] [blame^] | 15 | wrench.readdirSyncRecursive(path.join(__dirname, './gulp')) |
Matteo Scandolo | 3bb37fe | 2015-11-04 12:41:13 +0100 | [diff] [blame] | 16 | .map(function(file) { |
Matteo Scandolo | 0c989e0 | 2016-05-31 16:57:50 -0700 | [diff] [blame^] | 17 | require(path.join(__dirname, './gulp/' + file))(options); |
Matteo Scandolo | 3bb37fe | 2015-11-04 12:41:13 +0100 | [diff] [blame] | 18 | }); |
| 19 | |
| 20 | gulp.task('default', function () { |
| 21 | gulp.start('vendor'); |
| 22 | }); |