From f13f4b6f8471e317d2c9100a0f4945036e6cc997 Mon Sep 17 00:00:00 2001 From: overdodactyl Date: Sat, 13 Oct 2018 19:56:04 -0600 Subject: [PATCH] add versioning --- gulpfile.js | 15 +++++++++++++++ package-lock.json | 3 ++- package.json | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index fa9e916..3b232d6 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -4,6 +4,7 @@ var gulp = require('gulp'); var concatCss = require('gulp-concat-css'); var cleanCSS = require('gulp-clean-css'); var exec = require('gulp-exec'); +var exec_ch = require('child_process').exec; /* Minify all base code, edit in place */ gulp.task('minify_base_code', function() { @@ -85,3 +86,17 @@ gulp.task('push', function() { .pipe(exec('git push')) .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'); +}); + diff --git a/package-lock.json b/package-lock.json index 98e7d29..9faa97b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3458,7 +3458,8 @@ }, "minimatch": { "version": "2.0.10", - "resolved": "", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-2.0.10.tgz", + "integrity": "sha1-jQh8OcazjAAbl/ynzm0OHoCvusc=", "requires": { "brace-expansion": "^1.0.0" } diff --git a/package.json b/package.json index 960492c..ea4e3d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "shadowfox", - "version": "1.0.0", + "version": "1.5.0", "description": "a universal dark theme for firefox 57+", "main": "gulpfile.js", "dependencies": {