]> source.dussan.org Git - jquery.git/commitdiff
Revert "Release: ensure Sizzle is the latest tag"
authorDave Methvin <dave.methvin@gmail.com>
Wed, 17 Dec 2014 04:05:29 +0000 (23:05 -0500)
committerDave Methvin <dave.methvin@gmail.com>
Wed, 17 Dec 2014 04:05:29 +0000 (23:05 -0500)
This reverts commit 523c87138afc23acd7d0817504d254bd25ae04a0.

build/ensure-sizzle.js [deleted file]
build/release.js
package.json

diff --git a/build/ensure-sizzle.js b/build/ensure-sizzle.js
deleted file mode 100644 (file)
index 01a128e..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-var fs = require( "fs" ),
-       bower = require( "grunt-bowercopy/node_modules/bower" ),
-       sizzleLoc = __dirname + "/../src/sizzle/dist/sizzle.js",
-       rversion = /Engine v(\d+\.\d+\.\d+(?:-\w+)?)/;
-
-/**
- * Retrieve the latest tag of Sizzle from bower
- * @param {Function(string)} callback
- */
-function getLatestSizzle( callback ) {
-       bower.commands.info( "sizzle", "version" )
-               .on( "end", callback );
-}
-
-/**
- * Ensure the /src folder has the latest tag of Sizzle
- * @param {Object} Release
- * @param {Function} callback
- */
-function ensureSizzle( Release, callback ) {
-       console.log();
-       console.log( "Checking Sizzle version..." );
-       getLatestSizzle(function( latest ) {
-               var match = rversion.exec( fs.readFileSync( sizzleLoc, "utf8" ) ),
-                       version = match ? match[ 1 ] : "Not Found";
-
-               if ( version !== latest ) {
-                       console.log(
-                               "The Sizzle version in the src folder (" + version.red +
-                               ") is not the latest tag (" + latest.green + ")."
-                       );
-                       Release.confirm( callback );
-               } else {
-                       console.log( "Sizzle is latest (" + latest.green + ")" );
-                       callback();
-               }
-       });
-}
-
-module.exports = ensureSizzle;
index 8a2b98e58b9f22ccdd6e24c65b1f529d8a4fde26..1818d4d9e098bf60f84f4ace90d279c56166a410 100644 (file)
@@ -3,7 +3,6 @@ module.exports = function( Release ) {
        var
                fs = require( "fs" ),
                shell = require( "shelljs" ),
-               ensureSizzle = require( "./ensure-sizzle" ),
 
                devFile = "dist/jquery.js",
                minFile = "dist/jquery.min.js",
@@ -119,13 +118,6 @@ module.exports = function( Release ) {
                },
                issueTracker: "trac",
                contributorReportId: 508,
-               /**
-                * Ensure the repo is in a proper state before release
-                * @param {Function} callback
-                */
-               checkRepoState: function( callback ) {
-                       ensureSizzle( Release, callback );
-               },
                /**
                 * Generates any release artifacts that should be included in the release.
                 * The callback must be invoked with an array of files that should be
index c1ff29da1aa29e73fc3ff11f15395c2fee130d30..86def159e0f7206fc0d6e2f7c7088c99a9abf33b 100644 (file)
@@ -30,7 +30,6 @@
   ],
   "dependencies": {},
   "devDependencies": {
-    "colors": "^0.6.2",
     "commitplease": "1.7.0",
     "grunt": "0.4.2",
     "grunt-bowercopy": "0.7.1",