Doodle3D-Slicer/gulpfile.js

28 lines
576 B
JavaScript
Raw Normal View History

2015-05-01 14:09:45 +02:00
'use strict';
var gulp = require('gulp');
var rename = require('gulp-rename');
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');
var watch = require('gulp-watch');
var files = [
"src/utils.js",
"src/box.js",
"src/printer.js",
2015-05-13 12:12:15 +02:00
"src/paths.js",
2015-05-12 11:29:01 +02:00
"src/path.js",
2015-05-01 14:09:45 +02:00
"src/slicer.js"
];
2015-05-01 14:59:39 +02:00
var destination = 'build/';
2015-05-01 14:09:45 +02:00
gulp.task('default', function () {
return gulp.src(files)
2015-05-01 14:59:39 +02:00
// .pipe(watch(files))
2015-05-01 14:09:45 +02:00
.pipe(concat('d3d.js'))
2015-05-01 14:59:39 +02:00
.pipe(gulp.dest(destination))
2015-05-01 14:09:45 +02:00
.pipe(uglify())
.pipe(rename({extname: '.min.js'}))
2015-05-01 14:59:39 +02:00
.pipe(gulp.dest(destination));
2015-05-01 14:09:45 +02:00
});