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:
17
gulpfile.js
17
gulpfile.js
@@ -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
|
||||
|
Reference in New Issue
Block a user