Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
386 changes: 207 additions & 179 deletions devicetypes/ethayer/zwave-lock-schlage.src/zwave-lock-schlage.groovy

Large diffs are not rendered by default.

1,701 changes: 0 additions & 1,701 deletions devicetypes/ethayer/zwave-lock.src/zwave-lock.groovy

This file was deleted.

30 changes: 14 additions & 16 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
var gulp = require('gulp'),
gulpMerge = require('gulp-merge'),
concat = require('gulp-concat'),
watch = require('gulp-watch');
concat = require('gulp-concat');

gulp.task('concat', function () {
return gulpMerge(
gulp.src([

const { watch } = require('gulp');

gulp.task('concat', function() {
return gulp.src([
'source/main.groovy',
'source/lock.groovy',
'source/user.groovy',
'source/keypad.groovy',
// 'source/api.groovy'
])
)
.pipe(concat('lock-manager.groovy'))
.pipe(gulp.dest('smartapps/ethayer/lock-manager.src/'));
});
.pipe(concat('lock-manager.groovy'))
.pipe(gulp.dest('./smartapps/ethayer/lock-manager.src/'));
});

// Watch Files For Changes
gulp.task('watch', function() {
gulp.watch('source/*.groovy', ['concat']);
// prevent stupid edits
gulp.watch('smartapps/ethayer/lock-manager.src/*.groovy', ['concat']);
});
exports.default = function() {
// You can use a single task
watch('source/*.groovy', gulp.parallel(['concat']))
};


gulp.task('default', ['concat', 'watch']);
Loading