Skip to content

Commit

Permalink
Upgrade packages, add yarn.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
m4tx committed Mar 4, 2021
1 parent 97fc91c commit 0069eb4
Show file tree
Hide file tree
Showing 4 changed files with 4,087 additions and 25 deletions.
7 changes: 7 additions & 0 deletions ext/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@

"minimum_chrome_version": "62",

"browser_specific_settings": {
"gecko": {
"id": "[email protected]",
"strict_min_version": "42.0"
}
},

"icons": {
"16": "icon16.png",
"48": "icon48.png",
Expand Down
60 changes: 38 additions & 22 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,39 +53,55 @@ gulp.task('jshint', function () {
.pipe(jshint.reporter('default'));
});

gulp.task('clean:bin', () => del.sync('bin'));
gulp.task('clean:dist', () => del.sync('dist'));
gulp.task('clean:vendor', () => del.sync(path.join(EXT_DIR, 'vendor/bower')));
gulp.task('clean:vendor:hjsstyles', () =>
del.sync(path.join(EXT_DIR, 'vendor/bower/hjsstyles')));
gulp.task('clean:css', () => del.sync(path.join(EXT_DIR, 'css')));
gulp.task('clean', ['clean:bin', 'clean:dist', 'clean:css']);

gulp.task('build', ['sass', 'jshint', 'vendor']);
gulp.task('clean:bin', done => {
del.sync('bin');
done();
});
gulp.task('clean:dist', done => {
del.sync('dist')
done();
});
gulp.task('clean:vendor', done => {
del.sync(path.join(EXT_DIR, 'vendor/bower'));
done();
});
gulp.task('clean:vendor:hjsstyles', done => {
del.sync(path.join(EXT_DIR, 'vendor/bower/hjsstyles'));
done();
});
gulp.task('clean:css', done => {
del.sync(path.join(EXT_DIR, 'css'));
done();
});
gulp.task('clean', gulp.series('clean:bin', 'clean:dist', 'clean:css'));

gulp.task('vendor', ['clean:vendor', 'vendor:hjsstyles'], () => gulp
.src(vendorFiles)
.pipe(gulp.dest(path.join(EXT_DIR, 'vendor/bower')))
);
gulp.task('vendor:hjsstyles', ['clean:vendor:hjsstyles'], () => gulp
gulp.task('vendor:hjsstyles', gulp.series('clean:vendor:hjsstyles', () => gulp
.src(highlightJsStyles)
.pipe(prefixCss('.mainsphinx'))
.pipe(gulp.dest(path.join(EXT_DIR, 'vendor/bower/hjsstyles')))
);
gulp.task('dist', ['build', 'clean:dist'], () => gulp
));

gulp.task('vendor', gulp.series('clean:vendor', 'vendor:hjsstyles', () => gulp
.src(vendorFiles)
.pipe(gulp.dest(path.join(EXT_DIR, 'vendor/bower')))
));

gulp.task('build', gulp.parallel('sass', 'jshint', 'vendor'));

gulp.task('dist', gulp.series('build', 'clean:dist', () => gulp
.src(distFiles, {base: EXT_DIR})
.pipe(gulp.dest('dist'))
);
));

gulp.task('compress', ['dist'], () => gulp
gulp.task('compress', gulp.series('dist', () => gulp
.src('dist/**/*')
.pipe(zip('satori-enhancements-' + manifest.version + '.zip'))
.pipe(gulp.dest('bin'))
);
));

gulp.task('watch', ['build'], () => {
gulp.task('watch', gulp.series('build', () => {
gulp.watch(path.join(EXT_DIR, 'scss/**/*.scss'), ['sass']);
gulp.watch(path.join(EXT_DIR, 'js/**/*.js'), ['jshint']);
});
}));

gulp.task('default', ['dist']);
gulp.task('default', gulp.series('dist'));
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
"homepage": "https://github.com/m4tx/satori-enhancements#readme",
"devDependencies": {
"bower": "^1.8.4",
"del": "^3.0.0",
"gulp": "^3.9.1",
"del": "^6.0.0",
"gulp": "^4.0.2",
"gulp-jshint": "^2.1.0",
"gulp-prefix-css": "0.0.4",
"gulp-sass": "^4.0.2",
"gulp-zip": "^4.2.0",
"gulp-zip": "^5.0.2",
"jshint": "^2.9.6"
},
"dependencies": {
Expand Down
Loading

0 comments on commit 0069eb4

Please sign in to comment.