mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-04 21:53:25 +01:00
25 lines
496 B
JavaScript
25 lines
496 B
JavaScript
|
'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",
|
||
|
"src/slicer.js"
|
||
|
];
|
||
|
|
||
|
var DEST = 'build/';
|
||
|
|
||
|
gulp.task('default', function () {
|
||
|
return gulp.src(files)
|
||
|
.pipe(concat('d3d.js'))
|
||
|
.pipe(gulp.dest(DEST))
|
||
|
.pipe(uglify())
|
||
|
.pipe(rename({extname: '.min.js'}))
|
||
|
.pipe(gulp.dest(DEST));
|
||
|
});
|