summaryrefslogtreecommitdiff
path: root/gulpfile.js
blob: dcbfdc7007fb20a5e36d819d5752d1f85b7c8fed (plain)
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
var gulp = require('gulp');
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');

gulp.task('build', function() {
  gulp.src([
              'lib/serpentity/serpentity.js',
              'lib/serpentity/entity.js',
              'lib/serpentity/node.js',
              'lib/serpentity/node_collection.js',
              'lib/serpentity/component.js',
              'lib/serpentity/system.js',
          ])
    .pipe(uglify())
    .pipe(concat('serpentity.min.js'))
    .pipe(gulp.dest('dist'))

    gulp.src([
              'lib/serpentity/serpentity.js',
              'lib/serpentity/entity.js',
              'lib/serpentity/node.js',
              'lib/serpentity/node_collection.js',
              'lib/serpentity/component.js',
              'lib/serpentity/system.js',
          ])
    .pipe(concat('serpentity.js'))
    .pipe(gulp.dest('dist'))
});