Matteo Scandolo | d477139 | 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 | 56773f3 | 2016-05-31 16:57:50 -0700 | [diff] [blame] | 5 | var path = require('path'); |
Matteo Scandolo | d477139 | 2015-11-04 12:41:13 +0100 | [diff] [blame] | 6 | |
| 7 | var options = { |
Matteo Scandolo | 2cc9e0d | 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 | 90ed064 | 2016-04-25 10:11:56 -0700 | [diff] [blame] | 9 | ngXosStyles: '../../xos/core/static/', // TODO move in xoslib |
Matteo Scandolo | 582cc81 | 2016-04-13 17:23:28 -0700 | [diff] [blame] | 10 | xosHelperSource: './xosHelpers/src/', |
Matteo Scandolo | b7a86dc | 2016-04-14 11:46:30 -0700 | [diff] [blame] | 11 | xosHelperTmp: './xosHelpers/.tmp/', |
Matteo Scandolo | 582cc81 | 2016-04-13 17:23:28 -0700 | [diff] [blame] | 12 | docs: './docs' |
Matteo Scandolo | d477139 | 2015-11-04 12:41:13 +0100 | [diff] [blame] | 13 | }; |
| 14 | |
Matteo Scandolo | 56773f3 | 2016-05-31 16:57:50 -0700 | [diff] [blame] | 15 | wrench.readdirSyncRecursive(path.join(__dirname, './gulp')) |
Matteo Scandolo | d477139 | 2015-11-04 12:41:13 +0100 | [diff] [blame] | 16 | .map(function(file) { |
Matteo Scandolo | 56773f3 | 2016-05-31 16:57:50 -0700 | [diff] [blame] | 17 | require(path.join(__dirname, './gulp/' + file))(options); |
Matteo Scandolo | d477139 | 2015-11-04 12:41:13 +0100 | [diff] [blame] | 18 | }); |
| 19 | |
| 20 | gulp.task('default', function () { |
| 21 | gulp.start('vendor'); |
| 22 | }); |