Created
May 19, 2017 18:24
-
-
Save clovisdasilvaneto/81f52719d1eb38e03735b0859ff5eee1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var jshint = require('gulp-jshint'); | |
var concat = require('gulp-concat'); | |
var rename = require('gulp-rename'); | |
var rimraf = require('gulp-rimraf'); | |
var css = []; | |
css.push(''); | |
var libJS = []; | |
libJS.push('client/assets/js/jquery-2.1.1.js'); | |
libJS.push('client/assets/js/bootstrap.min.js'); | |
libJS.push('client/assets/js/bootstrap-datepicker.js'); | |
libJS.push('client/bower_components/lodash/lodash.min.js'); | |
libJS.push('client/bower_components/angular/angular.min.js'); | |
libJS.push('client/bower_components/angular-i18n/angular-locale_pt-br.js'); | |
libJS.push('client/bower_components/angular-resource/angular-resource.min.js'); | |
libJS.push('client/bower_components/angular-route/angular-route.js'); | |
libJS.push('client/bower_components/angular-input-masks/releases/masks.min.js'); | |
libJS.push('client/bower_components/angular-ui-utils/mask.min.js'); | |
libJS.push('client/bower_components/angular-bootstrap/ui-bootstrap.min.js'); | |
libJS.push('client/bower_components/angular-ui-router/release/angular-ui-router.min.js'); | |
libJS.push('client/bower_components/moment/moment.js'); | |
libJS.push('client/bower_components/angular-moment/angular-moment.min.js'); | |
var clientJS = []; | |
clientJS.push('client/js/app.js'); | |
clientJS.push('client/js/directivies/*.js'); | |
clientJS.push('client/js/filters/*.js'); | |
clientJS.push('client/js/services/*.js'); | |
clientJS.push('client/js/controllers/*.js'); | |
// Settings tasks | |
gulp.task('watch', function() { | |
gulp.watch(clientJS, ['scripts']); | |
}); | |
gulp.task('libs', function() { | |
return gulp.src(libJS).pipe(concat('lib.js')).pipe(gulp.dest('client/build')); | |
}); | |
gulp.task('scripts', function() { | |
return gulp.src(clientJS).pipe(concat('app.js')).pipe(gulp.dest('client/build')); | |
}); | |
gulp.task('default', ['libs', 'scripts', 'watch']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment