mirror of
https://github.com/rsheldiii/KeyV2.git
synced 2024-11-22 21:23:40 +00:00
48378d5759
Initial commit of Dactyl Manuform 4x6 layout
24 lines
820 B
JavaScript
24 lines
820 B
JavaScript
var gulp = require('gulp');
|
|
const shell = require('gulp-shell');
|
|
const changedInPlace = require('gulp-changed-in-place');
|
|
const changed = require('gulp-changed');
|
|
// var del = require('del');
|
|
|
|
var paths = {
|
|
compile: ['*.scad'], // '**/*.scad',
|
|
};
|
|
|
|
gulp.task('compile', function() {
|
|
// recompile any changed openscad files
|
|
return gulp.src(paths.compile)
|
|
.pipe(changedInPlace({howToDetermineDifference: "modification-time"})) // TODO doesnt work for literally no reason
|
|
.pipe(shell([
|
|
// 'openscad compile/compile.scad -o compile/out.stl > 1'
|
|
'openscad <%= file.relative %> -o <%= file.relative %>.stl'
|
|
], { ignoreErrors: true }))
|
|
});
|
|
|
|
gulp.task('default', function() {
|
|
gulp.watch(paths.compile, gulp.series('compile'));
|
|
});
|