forked from Rabrennie/anything.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
27 lines (24 loc) · 757 Bytes
/
gulpfile.js
File metadata and controls
27 lines (24 loc) · 757 Bytes
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
//Basic build process. Nothing too fancy
var gulp = require('gulp');
var concat = require('gulp-concat');
var prettify = require('gulp-jsbeautifier');
var minify = require('gulp-minify');
var jsfuck = require('gulp-jsfuck');
gulp.task('default', function() {
return gulp.src(['./src/constants/start.js','./src/*.js','./src/constants/end.js'])
.pipe(concat('anything.js'))
.pipe(prettify())
.pipe(minify({
ext:{
src: '.js',
min: '.min.js'
}
}))
.pipe(gulp.dest('./dist/'));
});
gulp.task('fuck', function() {
return gulp.src(['./src/constants/start.js','./src/*.js','./src/constants/end.js'])
.pipe(concat('anything.fucked.js'))
.pipe(jsfuck())
.pipe(gulp.dest('./dist/'));
})