mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Release: use chalk instead of colors for terminal colors
This commit is contained in:
parent
88046440da
commit
5f5aee3b58
@ -56,5 +56,6 @@ module.exports = function( Release ) {
|
|||||||
module.exports.dependencies = [
|
module.exports.dependencies = [
|
||||||
"archiver@0.14.2",
|
"archiver@0.14.2",
|
||||||
"shelljs@0.2.6",
|
"shelljs@0.2.6",
|
||||||
"npm@2.3.0"
|
"npm@2.3.0",
|
||||||
|
"chalk@1.1.1"
|
||||||
];
|
];
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
var fs = require( "fs" ),
|
var fs = require( "fs" ),
|
||||||
npm = require( "npm" ),
|
npm = require( "npm" ),
|
||||||
|
chalk = require( "chalk" ),
|
||||||
sizzleLoc = __dirname + "/../../external/sizzle/dist/sizzle.js",
|
sizzleLoc = __dirname + "/../../external/sizzle/dist/sizzle.js",
|
||||||
rversion = /Engine v(\d+\.\d+\.\d+(?:-[-\.\d\w]+)?)/;
|
rversion = /Engine v(\d+\.\d+\.\d+(?:-[-\.\d\w]+)?)/;
|
||||||
|
|
||||||
@ -37,12 +38,12 @@ function ensureSizzle( Release, callback ) {
|
|||||||
|
|
||||||
// colors is inherited from jquery-release
|
// colors is inherited from jquery-release
|
||||||
console.log(
|
console.log(
|
||||||
"The Sizzle version in the src folder (" + version.red +
|
"The Sizzle version in the src folder (" + chalk.red( version ) +
|
||||||
") is not the latest tag (" + latest.green + ")."
|
") is not the latest tag (" + chalk.green( latest ) + ")."
|
||||||
);
|
);
|
||||||
Release.confirm( callback );
|
Release.confirm( callback );
|
||||||
} else {
|
} else {
|
||||||
console.log( "Sizzle is latest (" + latest.green + ")" );
|
console.log( "Sizzle is latest (" + chalk.green( latest ) + ")" );
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
Loading…
Reference in New Issue
Block a user