forked from Illustrious-Dirigble/headcount
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGulpfile.js
29 lines (27 loc) · 890 Bytes
/
Gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// require gulp and any plugins
var gulp = require('gulp');
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');
var rename = require('gulp-rename');
/**
* Default gulp task: gulp.src points to location
* of file(s), .pipe allows you to send the specified
* file(s) through a series of plugins, and gulp.dest
* specifies the destination of the output.
*
* This specific example doesn't really do anything
* other than illustrate an example of some files getting
* concatenated, renamed to an appropriate file name, and
* then uglified, then outputted into a make-believe
* directory.
*
* I like Gulp.
*/
gulp.task('default', function() {
return gulp.src(['file1.js', 'file2.js', 'file3.js'])
.pipe(concat('all.js'))
.pipe(gulp.dest('./jsdir/'))
.pipe(rename('uglify.js'))
.pipe(uglify())
.pipe(gulp.dest('./jsdir/'));
});