diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/release.js | 9 | ||||
-rw-r--r-- | build/release/dist.js | 5 | ||||
-rw-r--r-- | build/release/ensure-sizzle.js | 52 | ||||
-rw-r--r-- | build/tasks/build.js | 19 |
4 files changed, 0 insertions, 85 deletions
diff --git a/build/release.js b/build/release.js index de6ab0c06..bb7b13103 100644 --- a/build/release.js +++ b/build/release.js @@ -14,7 +14,6 @@ module.exports = function( Release ) { ], cdn = require( "./release/cdn" ), dist = require( "./release/dist" ), - ensureSizzle = require( "./release/ensure-sizzle" ), npmTags = Release.npmTags; @@ -23,14 +22,6 @@ module.exports = function( Release ) { issueTracker: "github", /** - * Ensure the repo is in a proper state before release - * @param {Function} callback - */ - checkRepoState: function( callback ) { - ensureSizzle( Release, callback ); - }, - - /** * Set the version in the src folder for distributing AMD */ _setSrcVersion: function() { diff --git a/build/release/dist.js b/build/release/dist.js index ca7922628..577eb6404 100644 --- a/build/release/dist.js +++ b/build/release/dist.js @@ -65,7 +65,6 @@ module.exports = function( Release, files, complete ) { // Copy dist files var distFolder = Release.dir.dist + "/dist", - externalFolder = Release.dir.dist + "/external", readme = fs.readFileSync( Release.dir.dist + "/README.md", "utf8" ), rmIgnore = files .concat( [ @@ -88,10 +87,6 @@ module.exports = function( Release, files, complete ) { shell.cp( "-f", Release.dir.repo + "/" + file, distFolder ); } ); - // Copy Sizzle - shell.mkdir( "-p", externalFolder ); - shell.cp( "-rf", Release.dir.repo + "/external/sizzle", externalFolder ); - // Copy other files extras.forEach( function( file ) { shell.cp( "-rf", Release.dir.repo + "/" + file, Release.dir.dist ); diff --git a/build/release/ensure-sizzle.js b/build/release/ensure-sizzle.js deleted file mode 100644 index f9c5c70dd..000000000 --- a/build/release/ensure-sizzle.js +++ /dev/null @@ -1,52 +0,0 @@ -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]+)?)/; - -/** - * Retrieve the latest tag of Sizzle from npm - * @param {Function(string)} callback - */ -function getLatestSizzle( callback ) { - npm.load( function( err, npm ) { - if ( err ) { - throw err; - } - npm.commands.info( [ "sizzle", "version" ], function( err, info ) { - if ( err ) { - throw err; - } - callback( Object.keys( info )[ 0 ] ); - } ); - } ); -} - -/** - * 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 ) { - - // colors is inherited from jquery-release - console.log( - "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 (" + chalk.green( latest ) + ")" ); - callback(); - } - } ); -} - -module.exports = ensureSizzle; diff --git a/build/tasks/build.js b/build/tasks/build.js index 73dfd581d..d536f538c 100644 --- a/build/tasks/build.js +++ b/build/tasks/build.js @@ -72,13 +72,6 @@ module.exports = function( grunt ) { ) .replace( rdefineEnd, "" ); - // Sizzle treatment - } else if ( /\/sizzle$/.test( name ) ) { - contents = "var Sizzle =\n" + contents - - // Remove EXPOSE lines from Sizzle - .replace( /\/\/\s*EXPOSE[\w\W]*\/\/\s*EXPOSE/, "return Sizzle;" ); - } else { contents = contents @@ -218,11 +211,6 @@ module.exports = function( grunt ) { } } else { grunt.log.error( "Module \"" + module + "\" is a minimum requirement." ); - if ( module === "selector" ) { - grunt.log.error( - "If you meant to replace Sizzle, use -sizzle instead." - ); - } } } else { grunt.log.writeln( flag ); @@ -259,13 +247,6 @@ module.exports = function( grunt ) { excluder( flag ); } - // Handle Sizzle exclusion - // Replace with selector-native - if ( ( index = excluded.indexOf( "sizzle" ) ) > -1 ) { - config.rawText.selector = "define(['./selector-native']);"; - excluded.splice( index, 1 ); - } - // Replace exports/global with a noop noConflict if ( ( index = excluded.indexOf( "exports/global" ) ) > -1 ) { config.rawText[ "exports/global" ] = "define(['../core']," + |