blob: e030ad95755fa1abe39d274b2ca52afe5d3c6c40 [file] [log] [blame]
Matteo Scandolo3bb37fe2015-11-04 12:41:13 +01001'use strict';
2
3var gulp = require('gulp');
4var wrench = require('wrench');
Matteo Scandolo0c989e02016-05-31 16:57:50 -07005var path = require('path');
Matteo Scandolo3bb37fe2015-11-04 12:41:13 +01006
7var options = {
Matteo Scandolof043aae2016-01-20 16:52:51 -08008 ngXosVendor: '../../xos/core/xoslib/static/js/vendor/', //save here the minfied vendor file, this is automatically loaded in the django page
Matteo Scandoloe53ee382016-04-25 10:11:56 -07009 ngXosStyles: '../../xos/core/static/', // TODO move in xoslib
Matteo Scandolo717352a2016-04-13 17:23:28 -070010 xosHelperSource: './xosHelpers/src/',
Matteo Scandolo1dab3e02016-04-14 11:46:30 -070011 xosHelperTmp: './xosHelpers/.tmp/',
Matteo Scandolo717352a2016-04-13 17:23:28 -070012 docs: './docs'
Matteo Scandolo3bb37fe2015-11-04 12:41:13 +010013};
14
Matteo Scandolo0c989e02016-05-31 16:57:50 -070015wrench.readdirSyncRecursive(path.join(__dirname, './gulp'))
Matteo Scandolo3bb37fe2015-11-04 12:41:13 +010016.map(function(file) {
Matteo Scandolo0c989e02016-05-31 16:57:50 -070017 require(path.join(__dirname, './gulp/' + file))(options);
Matteo Scandolo3bb37fe2015-11-04 12:41:13 +010018});
19
20gulp.task('default', function () {
21 gulp.start('vendor');
22});