blob: e030ad95755fa1abe39d274b2ca52afe5d3c6c40 [file] [log] [blame]
Matteo Scandolod4771392015-11-04 12:41:13 +01001'use strict';
2
3var gulp = require('gulp');
4var wrench = require('wrench');
Matteo Scandolo56773f32016-05-31 16:57:50 -07005var path = require('path');
Matteo Scandolod4771392015-11-04 12:41:13 +01006
7var options = {
Matteo Scandolo2cc9e0d2016-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 Scandolo90ed0642016-04-25 10:11:56 -07009 ngXosStyles: '../../xos/core/static/', // TODO move in xoslib
Matteo Scandolo582cc812016-04-13 17:23:28 -070010 xosHelperSource: './xosHelpers/src/',
Matteo Scandolob7a86dc2016-04-14 11:46:30 -070011 xosHelperTmp: './xosHelpers/.tmp/',
Matteo Scandolo582cc812016-04-13 17:23:28 -070012 docs: './docs'
Matteo Scandolod4771392015-11-04 12:41:13 +010013};
14
Matteo Scandolo56773f32016-05-31 16:57:50 -070015wrench.readdirSyncRecursive(path.join(__dirname, './gulp'))
Matteo Scandolod4771392015-11-04 12:41:13 +010016.map(function(file) {
Matteo Scandolo56773f32016-05-31 16:57:50 -070017 require(path.join(__dirname, './gulp/' + file))(options);
Matteo Scandolod4771392015-11-04 12:41:13 +010018});
19
20gulp.task('default', function () {
21 gulp.start('vendor');
22});