diff --git a/.eslintignore b/.eslintignore index 53117f7..da8b87d 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,3 +1,4 @@ node_modules/ public/ .esm-cache +*hterm* diff --git a/gulpfile.js b/gulpfile.js index dfc74c6..fb491dc 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -5,9 +5,9 @@ const babel = require('gulp-babel'); const shell = require('gulp-shell'); const del = require('del'); -gulp.task('compress', ['hterm'], () => +gulp.task('compress', [], () => gulp - .src(['./libapps/hterm_all.js', './src/wetty.js']) + .src(['./src/hterm_all.js', './src/wetty.js']) .pipe(concat('wetty.js')) .pipe(babel()) .pipe( @@ -28,7 +28,7 @@ gulp.task( shell.task( [ 'git clone https://chromium.googlesource.com/apps/libapps', - 'LIBDOT_SEARCH_PATH=$(pwd)/libapps ./libapps/libdot/bin/concat.sh -i ./libapps/hterm/concat/hterm_all.concat -o ./libapps/hterm_all.js', + 'LIBDOT_SEARCH_PATH=$(pwd)/libapps ./libapps/libdot/bin/concat.sh -i ./libapps/hterm/concat/hterm_all.concat -o ./src/hterm_all.js', ], { verbose: true, @@ -36,4 +36,5 @@ gulp.task( ), ); -gulp.task('default', ['compress'], () => del(['./libapps'])); +gulp.task('default', ['compress']); +gulp.task('upgrade', ['hterm', 'compress'], () => del(['./libapps'])); diff --git a/public/wetty/index.html b/public/wetty/index.html index 3978fb6..1f468f9 100644 --- a/public/wetty/index.html +++ b/public/wetty/index.html @@ -35,7 +35,7 @@
- +