]> git.r.bdr.sh - rbdr/serpentity/blobdiff - gulpfile.js
Prepare bower with a concatenated file.
[rbdr/serpentity] / gulpfile.js
diff --git a/gulpfile.js b/gulpfile.js
new file mode 100644 (file)
index 0000000..f1fb5e6
--- /dev/null
@@ -0,0 +1,17 @@
+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.js'))
+    .pipe(gulp.dest('dist'))
+});