35 lines
1.0 KiB
JavaScript
35 lines
1.0 KiB
JavaScript
/*******************************************************************************
|
|
* Copyright (c) 2015 Codenvy, S.A.
|
|
* All rights reserved. This program and the accompanying materials
|
|
* are made available under the terms of the Eclipse Public License v1.0
|
|
* which accompanies this distribution, and is available at
|
|
* http://www.eclipse.org/legal/epl-v10.html
|
|
*
|
|
* Contributors:
|
|
* Codenvy, S.A. - initial API and implementation
|
|
*******************************************************************************/
|
|
|
|
'use strict';
|
|
|
|
var gulp = require('gulp');
|
|
var wrench = require('wrench');
|
|
|
|
/**
|
|
* This will load all js or coffee files in the gulp directory
|
|
* in order to load all gulp tasks
|
|
*/
|
|
wrench.readdirSyncRecursive('./gulp').filter(function(file) {
|
|
return (/\.(js|coffee)$/i).test(file);
|
|
}).map(function(file) {
|
|
require('./gulp/' + file);
|
|
});
|
|
|
|
|
|
/**
|
|
* Default task clean temporaries directories and launch the
|
|
* main optimization build task
|
|
*/
|
|
gulp.task('default', ['clean'], function () {
|
|
gulp.start('build');
|
|
});
|