Skip to content

Commit

Permalink
Update gulp
Browse files Browse the repository at this point in the history
  • Loading branch information
Booom3 committed May 17, 2020
1 parent c6bece2 commit bb38eb6
Show file tree
Hide file tree
Showing 5 changed files with 3,101 additions and 1,244 deletions.
2 changes: 1 addition & 1 deletion Extensions/Chrome Extension/Source/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "CancerTTV",
"short_name": "CTTV",
"version": "1.5.5",
"version": "1.5.6",
"description": "Makes Twitch just a little bit worse for everyone else.",
"icons": {
"64": "Icon 64.png",
Expand Down
2 changes: 1 addition & 1 deletion Extensions/Firefox Extension/Source/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"manifest_version": 2,
"name": "CancerTTV",
"version": "1.5.5",
"version": "1.5.6",
"description": "Makes Twitch just a little bit worse for everyone else.",
"author": "Booom3",
"icons": {
Expand Down
19 changes: 10 additions & 9 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,23 @@ gulp.task('styles', function () {
.pipe(gulp.dest(ffExtLoc + '/Source'));
});

gulp.task('compresszipff', ['scripts', 'styles'], function () {
gulp.task('compresszipff', gulp.series('scripts', 'styles', function () {
return gulp.src(ffExtLoc + '/Source/*')
.pipe(zip('CancerTTV Firefox.xpi'))
.pipe(gulp.dest('Extensions/Firefox Extension'));
});
}));

gulp.task('compresszipchrome', ['scripts', 'styles'], function () {
gulp.task('compresszipchrome', gulp.series('scripts', 'styles', function () {
return gulp.src(chromeExtLoc + '/Source/*')
.pipe(zip('CancerTTV Chrome.zip'))
.pipe(gulp.dest(chromeExtLoc + ''));
});
}));

var fs = require('fs');
var getPackageJson = function (arg) {
return JSON.parse(fs.readFileSync(arg, 'utf8'));
};

gulp.task(
'bumpversion',
['bumpversionpackage', 'bumpversionchrome', 'bumpversionff']
);

var version = 'minor';
if (process.argv.indexOf('--patch') > -1)
Expand Down Expand Up @@ -70,8 +66,13 @@ gulp.task('bumpversionff', function () {
.pipe(gulp.dest(ffExtLoc + '/Source'));
});

gulp.task(
'bumpversion',
gulp.series('bumpversionpackage', 'bumpversionchrome', 'bumpversionff')
);

gulp.task('watch', function () {
gulp.watch('Source/*', ['styles', 'scripts']);
});

gulp.task('default', ['scripts', 'compresszipff', 'compresszipchrome']);
gulp.task('default', gulp.series('scripts', 'compresszipff', 'compresszipchrome'));
Loading

1 comment on commit bb38eb6

@qertes
Copy link

@qertes qertes commented on bb38eb6 Mar 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

habcd

Please sign in to comment.