Manipulation: re-expose domManip until 3.0
[jquery.git] / build / release.js
blob7fd00bd8c2cdf381af69c0367db916ff2ebedf25
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() {
40                         // origRepo is not defined if dist was skipped
41                         Release.dir.repo = Release.dir.origRepo || Release.dir.repo;
42                         return npmTags();
43                 },
44                 /**
45                  * Publish to distribution repo and npm
46                  * @param {Function} callback
47                  */
48                 dist: function( callback ) {
49                         cdn.makeArchives( Release, function() {
50                                 dist( Release, callback );
51                         } );
52                 }
53         } );
56 module.exports.dependencies = [
57         "archiver@0.14.2",
58         "shelljs@0.2.6",
59         "npm@2.3.0"