]> git.r.bdr.sh - rbdr/serpentity/blob - gulpfile.js
Normalizes API for entities
[rbdr/serpentity] / gulpfile.js
1 var gulp = require('gulp');
2 var uglify = require('gulp-uglify');
3 var concat = require('gulp-concat');
4
5 gulp.task('build', function() {
6 gulp.src([
7 'lib/serpentity/serpentity.js',
8 'lib/serpentity/entity.js',
9 'lib/serpentity/node.js',
10 'lib/serpentity/node_collection.js',
11 'lib/serpentity/component.js',
12 'lib/serpentity/system.js',
13 ])
14 .pipe(uglify())
15 .pipe(concat('serpentity.min.js'))
16 .pipe(gulp.dest('dist'))
17
18 gulp.src([
19 'lib/serpentity/serpentity.js',
20 'lib/serpentity/entity.js',
21 'lib/serpentity/node.js',
22 'lib/serpentity/node_collection.js',
23 'lib/serpentity/component.js',
24 'lib/serpentity/system.js',
25 ])
26 .pipe(concat('serpentity.js'))
27 .pipe(gulp.dest('dist'))
28 });