forked from gpujs/gpu.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
executable file
·33 lines (30 loc) · 839 Bytes
/
gulpfile.js
File metadata and controls
executable file
·33 lines (30 loc) · 839 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
28
29
30
31
32
33
var gulp = require('gulp');
var concat = require('gulp-concat');
var rename = require("gulp-rename");
var uglify = require('gulp-uglify');
gulp.task('build', function() {
return gulp.src([
'src/wrapper/prefix.js',
'src/parser.js',
'src/texture.js',
'src/gpu.js',
'src/backend/functionNode_webgl.js',
'src/backend/functionNode.js',
'src/backend/functionBuilder.js',
'src/backend/fallback.js',
'src/backend/glsl.js',
'src/wrapper/suffix.js'
])
.pipe(concat('gpu.js'))
.pipe(gulp.dest('bin'));
});
gulp.task('minify', ['build'], function() {
return gulp.src(['bin/gpu.js'])
.pipe(rename('gpu.min.js'))
.pipe(uglify({
mangle: false,
preserveComments: "license"
}))
.pipe(gulp.dest('bin'));
});
gulp.task('default', ['minify']);