Matteo Scandolo | a5d03d5 | 2016-07-21 11:35:46 -0700 | [diff] [blame] | 1 | /*eslint-env node */ |
| 2 | (function () { |
| 3 | 'use strict'; |
| 4 | |
| 5 | const gulp = require('gulp'); |
| 6 | const wrench = require('wrench'); |
| 7 | const path = require('path'); |
| 8 | |
| 9 | const options = { |
| 10 | ngXosVendor: './dist/', |
| 11 | ngXosStyles: './dist/', |
| 12 | xosHelperSource: './src/', |
| 13 | xosHelperTmp: './.tmp/', |
| 14 | docs: './docs' |
| 15 | }; |
| 16 | |
| 17 | wrench.readdirSyncRecursive(path.join(__dirname, './gulp')) |
| 18 | .map(function(file) { |
| 19 | require(path.join(__dirname, './gulp/' + file))(options); |
| 20 | }); |
| 21 | |
| 22 | gulp.task('default', function () { |
| 23 | gulp.start('build'); |
| 24 | }); |
| 25 | |
| 26 | gulp.task('build', ['vendor', 'helpers', 'uiLibrary']); |
| 27 | |
| 28 | })(); |