2018-12-05 17:12:35 +01:00
|
|
|
let gulp = require('gulp');
|
|
|
|
let run = require('gulp-run-command').default;
|
|
|
|
|
2018-12-20 01:49:56 +01:00
|
|
|
|
2018-12-05 17:12:35 +01:00
|
|
|
gulp.task('clean', run('rm -rf ../../../../.build'));
|
|
|
|
|
|
|
|
gulp.task('build', ['clean'], run('make -C ../../../../ ergodox_ez:hacker_dvorak', {
|
|
|
|
ignoreErrors: true
|
|
|
|
}));
|
|
|
|
|
|
|
|
gulp.task('watch', ['build'], () => {
|
2018-12-20 01:49:56 +01:00
|
|
|
gulp.watch([
|
|
|
|
'keymap.c',
|
|
|
|
'config.h',
|
|
|
|
'rules.mk',
|
|
|
|
], ['build']);
|
2018-12-05 17:12:35 +01:00
|
|
|
});
|
2018-12-20 01:49:56 +01:00
|
|
|
|
|
|
|
gulp.task('default', ['watch']);
|