Skip to content

Commit

Permalink
Update gulp
Browse files Browse the repository at this point in the history
  • Loading branch information
junian committed Apr 15, 2024
1 parent c748610 commit 95466ff
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
15 changes: 8 additions & 7 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
var gulp = require('gulp');
var inject = require('gulp-inject');
const { src, dest, series } = require('gulp');
const inject = require('gulp-inject');

gulp.task('codemirror', function () {
var target = gulp.src('./resources/codemirror-editor.html');
var sources = gulp.src(['./resources/**/codemirror*.js', './resources/**/codemirror*.css'], {read: true});
function codemirrorBuild() {
var target = src('./resources/codemirror/codemirror-editor.html');
var sources = src(['./resources/**/codemirror*.js', './resources/**/codemirror*.css'], {read: true});

return target.pipe(inject(sources))
.pipe(gulp.dest('./resources'));
});
.pipe(dest('./resources/codemirror'));
}

exports.default = series(codemirrorBuild);
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
"version": "0.8.0",
"description": "Cross-platform Serial/TCP Terminal with Scriptable Auto-Response.",
"main": "index.js",
"dependencies": {},
"devDependencies": {
"gulp": "^3.9.1",
"gulp-inject": "^4.3.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand All @@ -21,5 +16,9 @@
"bugs": {
"url": "https://github.com/junian/termission/issues"
},
"homepage": "https://github.com/junian/termission#readme"
"homepage": "https://github.com/junian/termission#readme",
"devDependencies": {
"gulp": "^5.0.0",
"gulp-inject": "^5.0.5"
}
}

0 comments on commit 95466ff

Please sign in to comment.