update to gulp 4
This commit is contained in:
parent
7b262609ea
commit
33a85a426d
45
gulpfile.js
45
gulpfile.js
|
@ -6,7 +6,7 @@ var cleanCSS = require('gulp-clean-css');
|
|||
var exec = require('gulp-exec');
|
||||
|
||||
/* Minify all base code, edit in place */
|
||||
gulp.task('minify_base_code', () => {
|
||||
gulp.task('minify_base_code', function() {
|
||||
return gulp.src(['common-files/*.css', 'userContent-files/*.css', 'userContent-files/*/*.css', 'userChrome-files/*', 'userChrome-files/*/*.css'])
|
||||
.pipe(cleanCSS({
|
||||
level : 2 ,
|
||||
|
@ -17,6 +17,7 @@ gulp.task('minify_base_code', () => {
|
|||
}));
|
||||
});
|
||||
|
||||
|
||||
/* Remove internal UUIDs */
|
||||
gulp.task('remove_UUIDs', function() {
|
||||
return gulp.src('.')
|
||||
|
@ -34,11 +35,11 @@ gulp.task('userContent_no_addons', function() {
|
|||
|
||||
|
||||
/* Add everything to userContent */
|
||||
gulp.task('userContent', ['userContent_no_addons'], function() {
|
||||
gulp.task('userContent', gulp.parallel('userContent_no_addons', function() {
|
||||
return gulp.src(['color_variables.css', 'common-files/*.css', 'userContent-files/*.css', 'userContent-files/*/*.css'])
|
||||
.pipe(concatCss('userContent.css'))
|
||||
.pipe(gulp.dest('.'));
|
||||
});
|
||||
}));
|
||||
|
||||
|
||||
/* Create Windows version */
|
||||
|
@ -50,26 +51,14 @@ gulp.task('userChrome_windows', function() {
|
|||
|
||||
|
||||
/* Add everything to userChrome */
|
||||
gulp.task('userChrome', ['userChrome_windows'], function() {
|
||||
gulp.task('userChrome', gulp.parallel('userChrome_windows', function() {
|
||||
return gulp.src(['color_variables.css', 'common-files/*.css', 'userChrome-files/*.css'])
|
||||
.pipe(concatCss('userChrome.css'))
|
||||
.pipe(gulp.dest('.'));
|
||||
});
|
||||
}));
|
||||
|
||||
|
||||
|
||||
/* All */
|
||||
gulp.task('all', ['userChrome', 'userContent'], function() {
|
||||
return gulp.src(['userChrome.css', 'userContent.css'])
|
||||
.pipe(cleanCSS({
|
||||
level : 1 ,
|
||||
format: 'beautify'
|
||||
}))
|
||||
.pipe(gulp.dest('.'));
|
||||
});
|
||||
|
||||
/* Publish */
|
||||
gulp.task('publish', ['remove_UUIDs', 'minify_base_code', 'userChrome', 'userContent'], function() {
|
||||
/* Minify final user files */
|
||||
gulp.task('minify_final', function() {
|
||||
return gulp.src(['userChrome.css', 'userContent.css', 'alternative_user_files/*.css'])
|
||||
.pipe(cleanCSS({
|
||||
level : 2 ,
|
||||
|
@ -80,6 +69,24 @@ gulp.task('publish', ['remove_UUIDs', 'minify_base_code', 'userChrome', 'userCon
|
|||
}));
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
/* All */
|
||||
gulp.task('all', gulp.parallel('userChrome', 'userContent', function() {
|
||||
return gulp.src(['userChrome.css', 'userContent.css'])
|
||||
.pipe(cleanCSS({
|
||||
level : 1 ,
|
||||
format: 'beautify'
|
||||
}))
|
||||
.pipe(gulp.dest('.'));
|
||||
}));
|
||||
|
||||
/* Publish */
|
||||
gulp.task('publish', gulp.series('remove_UUIDs', 'minify_base_code', 'userChrome', 'userContent', 'minify_final'));
|
||||
|
||||
|
||||
|
||||
/* Gulp Push - used to push to GitHub and re-add internal UUIDs */
|
||||
gulp.task('push', function() {
|
||||
return gulp.src('.')
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1212,6 +1212,39 @@ url-prefix(https://discovery.addons.mozilla.org) {
|
|||
border: none!important
|
||||
}
|
||||
}
|
||||
.pkt_ext_containersaved h2 {
|
||||
color: var(--tone-4)!important
|
||||
}
|
||||
.pkt_ext_containersaved .pkt_ext_tag_detail {
|
||||
border-color: var(--tone-5)!important;
|
||||
background: var(--tone-6)!important
|
||||
}
|
||||
.pkt_ext_containersaved .pkt_ext_tag_input_wrapper {
|
||||
background-color: var(--tone-6)!important;
|
||||
border-color: var(--tone-5)!important
|
||||
}
|
||||
.pkt_ext_containersaved .pkt_ext_tag_input_wrapper input::placeholder {
|
||||
color: var(--tone-4)!important
|
||||
}
|
||||
.pkt_ext_containersaved .pkt_ext_tag_input_wrapper input {
|
||||
background-color: var(--tone-6)!important;
|
||||
color: var(--tone-4)!important
|
||||
}
|
||||
.pkt_ext_containersaved .pkt_ext_btn {
|
||||
background: var(--tone-8)!important
|
||||
}
|
||||
.pkt_ext_containersaved .token-input-token {
|
||||
border-color: var(--tone-5)!important;
|
||||
background-color: var(--tone-7)!important;
|
||||
color: var(--tone-4)!important
|
||||
}
|
||||
.token-input-dropdown-tag {
|
||||
background: var(--tone-6)!important;
|
||||
border-color: var(--tone-5)!important
|
||||
}
|
||||
.token-input-dropdown-tag ul li {
|
||||
color: var(--tone-4)!important
|
||||
}
|
||||
/*! Alters the webextension Request Control
|
||||
IMPORTANT: change the Internal UUID */
|
||||
@-moz-document url-prefix("moz-extension://request_control_UUID/") {
|
||||
|
|
Loading…
Reference in New Issue