]> source.dussan.org Git - jquery.git/commitdiff
Release: use chalk instead of colors for terminal colors
authorTimmy Willison <timmywillisn@gmail.com>
Thu, 12 Nov 2015 18:23:53 +0000 (13:23 -0500)
committerTimmy Willison <timmywillisn@gmail.com>
Thu, 12 Nov 2015 18:23:53 +0000 (13:23 -0500)
build/release.js
build/release/ensure-sizzle.js

index 7fd00bd8c2cdf381af69c0367db916ff2ebedf25..5feddfa240377a9d133304c6c0f55d66221b4200 100644 (file)
@@ -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"
 ];
index 7957606431f703b477ae1bff7740e809efee7226..f9c5c70dd1d9fc053448497d403643cb55321355 100644 (file)
@@ -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();
                }
        } );