add versioning
This commit is contained in:
parent
1bc8413563
commit
f13f4b6f84
15
gulpfile.js
15
gulpfile.js
|
@ -4,6 +4,7 @@ var gulp = require('gulp');
|
||||||
var concatCss = require('gulp-concat-css');
|
var concatCss = require('gulp-concat-css');
|
||||||
var cleanCSS = require('gulp-clean-css');
|
var cleanCSS = require('gulp-clean-css');
|
||||||
var exec = require('gulp-exec');
|
var exec = require('gulp-exec');
|
||||||
|
var exec_ch = require('child_process').exec;
|
||||||
|
|
||||||
/* Minify all base code, edit in place */
|
/* Minify all base code, edit in place */
|
||||||
gulp.task('minify_base_code', function() {
|
gulp.task('minify_base_code', function() {
|
||||||
|
@ -85,3 +86,17 @@ gulp.task('push', function() {
|
||||||
.pipe(exec('git push'))
|
.pipe(exec('git push'))
|
||||||
.pipe(exec('sh scripts/uuids.sh add'))
|
.pipe(exec('sh scripts/uuids.sh add'))
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
gulp.task('patch', () => {
|
||||||
|
return exec_ch('npx ver patch -p css/common-files/color_variables.css');
|
||||||
|
});
|
||||||
|
|
||||||
|
gulp.task('minor', () => {
|
||||||
|
return exec_ch('npx ver minor -p css/common-files/color_variables.css');
|
||||||
|
});
|
||||||
|
|
||||||
|
gulp.task('major', () => {
|
||||||
|
return exec_ch('npx ver major -p css/common-files/color_variables.css');
|
||||||
|
});
|
||||||
|
|
||||||
|
|
|
@ -3458,7 +3458,8 @@
|
||||||
},
|
},
|
||||||
"minimatch": {
|
"minimatch": {
|
||||||
"version": "2.0.10",
|
"version": "2.0.10",
|
||||||
"resolved": "",
|
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-2.0.10.tgz",
|
||||||
|
"integrity": "sha1-jQh8OcazjAAbl/ynzm0OHoCvusc=",
|
||||||
"requires": {
|
"requires": {
|
||||||
"brace-expansion": "^1.0.0"
|
"brace-expansion": "^1.0.0"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "shadowfox",
|
"name": "shadowfox",
|
||||||
"version": "1.0.0",
|
"version": "1.5.0",
|
||||||
"description": "a universal dark theme for firefox 57+",
|
"description": "a universal dark theme for firefox 57+",
|
||||||
"main": "gulpfile.js",
|
"main": "gulpfile.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
Loading…
Reference in New Issue