1
0
mirror of https://github.com/konpa/devicon.git synced 2025-08-12 01:24:42 +02:00

Build preparation for release v2.14.0 (#840)

* bump npm version to v2.13.1

* Built new icons, icomoon.json and devicon.css (#839)

Co-authored-by: Thomas-Boi <Thomas-Boi@users.noreply.github.com>

* Add a gulp task to bump npm version

* bump npm version to v2.14.0

* Add code docs to gulp bumpVersion task

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Thomas-Boi <Thomas-Boi@users.noreply.github.com>
This commit is contained in:
Thomas Bui
2021-09-08 13:52:53 -07:00
committed by GitHub
parent 63b340cb29
commit 71049a24c1
32 changed files with 361 additions and 675 deletions

View File

@@ -5,6 +5,7 @@ const footer = require("gulp-footer");
const yargs = require("yargs");
const fsPromise = require("fs").promises;
const path = require("path");
const {execSync} = require("child_process")
// global const
const deviconBaseCSSName = "devicon-base.css"
@@ -191,6 +192,22 @@ function configOptionCallback(file) {
};
}
/**
* Bump the NPM version of this project.
* This is called via the command line
* using the format "npm run bump -- -v='MAJOR.MINOR.PATCH'"
* @returns a Promise.resolve()
*/
function bumpVersion() {
let newVersion = yargs.argv.v
let command = `npm version v${newVersion} -m "bump npm version to v${newVersion}"`
console.log("Running command: " + command)
let stdout = execSync(command)
console.log("Command ran. Here's the result:\n" + stdout)
return Promise.resolve()
}
exports.updateCss = createDeviconMinCSS;
exports.clean = cleanUp;
exports.optimizeSvg = optimizeSvg;
exports.bumpVersion = bumpVersion