aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2015-11-12 13:23:53 -0500
committerTimmy Willison <timmywillisn@gmail.com>2015-11-12 13:23:53 -0500
commit5f5aee3b582cff72823efe9ed2785c1d17eadfd3 (patch)
treeebbcd55008f7c39ae54c0e5e4e6d659498a205dc /build
parent88046440da8f5433b510ea705255d1df12c2963e (diff)
downloadjquery-5f5aee3b582cff72823efe9ed2785c1d17eadfd3.tar.gz
jquery-5f5aee3b582cff72823efe9ed2785c1d17eadfd3.zip
Release: use chalk instead of colors for terminal colors
Diffstat (limited to 'build')
-rw-r--r--build/release.js3
-rw-r--r--build/release/ensure-sizzle.js7
2 files changed, 6 insertions, 4 deletions
diff --git a/build/release.js b/build/release.js
index 7fd00bd8c..5feddfa24 100644
--- a/build/release.js
+++ b/build/release.js
@@ -56,5 +56,6 @@ module.exports = function( Release ) {
module.exports.dependencies = [
"archiver@0.14.2",
"shelljs@0.2.6",
- "npm@2.3.0"
+ "npm@2.3.0",
+ "chalk@1.1.1"
];
diff --git a/build/release/ensure-sizzle.js b/build/release/ensure-sizzle.js
index 795760643..f9c5c70dd 100644
--- a/build/release/ensure-sizzle.js
+++ b/build/release/ensure-sizzle.js
@@ -1,5 +1,6 @@
var fs = require( "fs" ),
npm = require( "npm" ),
+ chalk = require( "chalk" ),
sizzleLoc = __dirname + "/../../external/sizzle/dist/sizzle.js",
rversion = /Engine v(\d+\.\d+\.\d+(?:-[-\.\d\w]+)?)/;
@@ -37,12 +38,12 @@ function ensureSizzle( Release, callback ) {
// colors is inherited from jquery-release
console.log(
- "The Sizzle version in the src folder (" + version.red +
- ") is not the latest tag (" + latest.green + ")."
+ "The Sizzle version in the src folder (" + chalk.red( version ) +
+ ") is not the latest tag (" + chalk.green( latest ) + ")."
);
Release.confirm( callback );
} else {
- console.log( "Sizzle is latest (" + latest.green + ")" );
+ console.log( "Sizzle is latest (" + chalk.green( latest ) + ")" );
callback();
}
} );