Data: updates to element[expando] cache
[jquery.git] / build / release.js
blob231e2c4c302f14523cddaa58dc6f578de7b8ddde
2 module.exports = function( Release ) {
4         var
5                 files = [ "dist/jquery.js", "dist/jquery.min.js", "dist/jquery.min.map" ],
6                 cdn = require( "./release/cdn" ),
7                 dist = require( "./release/dist" ),
8                 ensureSizzle = require( "./release/ensure-sizzle" ),
10                 npmTags = Release.npmTags;
12         Release.define({
13                 npmPublish: true,
14                 issueTracker: "github",
15                 /**
16                  * Ensure the repo is in a proper state before release
17                  * @param {Function} callback
18                  */
19                 checkRepoState: function( callback ) {
20                         ensureSizzle( Release, callback );
21                 },
22                 /**
23                  * Generates any release artifacts that should be included in the release.
24                  * The callback must be invoked with an array of files that should be
25                  * committed before creating the tag.
26                  * @param {Function} callback
27                  */
28                 generateArtifacts: function( callback ) {
29                         Release.exec( "grunt", "Grunt command failed" );
30                         cdn.makeReleaseCopies( Release );
31                         callback( files );
32                 },
33                 /**
34                  * Acts as insertion point for restoring Release.dir.repo
35                  * It was changed to reuse npm publish code in jquery-release
36                  * for publishing the distribution repo instead
37                  */
38                 npmTags: function() {
39                         // origRepo is not defined if dist was skipped
40                         Release.dir.repo = Release.dir.origRepo || Release.dir.repo;
41                         return npmTags();
42                 },
43                 /**
44                  * Publish to distribution repo and npm
45                  * @param {Function} callback
46                  */
47                 dist: function( callback ) {
48                         cdn.makeArchives( Release, function() {
49                                 dist( Release, callback );
50                         });
51                 }
52         });
55 module.exports.dependencies = [
56         "archiver@0.14.2",
57         "shelljs@0.2.6",
58         "npm@2.3.0"