Blame view

bower_components/jquery-validation/build/release.js 1.46 KB
4c373a79   Administrator   ашкые
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
  /* Release checklist
  - Run `git changelog` and edit to match previous output (this should make use of jquey-release instead)
  - pull latest https://github.com/jquery/jquery-release
  - disable _generateChangelog task in release.js (BOOOO)
  - adjust commit message in jquery-release/lib/repo.js to prepand "Release:", to make the commit hook happy
  - run
  	node release.js --remote=jzaefferer/jquery-validation
  - Wait a while, verify and confirm each step
  - Create GitHub release: Pick the new tag, add changelog, upload zip
  - Update MS CDN (see 1password for url and credentials)
  - Check jsdelivr CDN
  - Update validation-content/pages/index.html (may have to hold off on CDN updates until available)
  - Write blog post: Some highlights, changelog, download links
  */
  
  /*jshint node:true */
  module.exports = function( Release ) {
  
  function today() {
  	return new Date().toISOString().replace(/T.+/, "");
  }
  
  // also add version property to this
  Release._jsonFiles.push( "validation.jquery.json" );
  
  Release.define({
  	issueTracker: "github",
  	changelogShell: function() {
  		return Release.newVersion + " / " + today() + "\n==================\n\n";
  	},
  
  	generateArtifacts: function( done ) {
  		Release.exec( "grunt release", "Grunt command failed" );
  		done([
  			"dist/additional-methods.js",
  			"dist/additional-methods.min.js",
  			"dist/jquery.validate.js",
  			"dist/jquery.validate.min.js"
  		]);
  	},
  
  	cdnPublish: false,
  	npmPublish: true,
  
  	// disable authors check
  	_checkAuthorsTxt: function() {}
  });
  
  };