mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Release script: Add .npmignore and keep .gitignore when creating the tag
This commit is contained in:
parent
6f74abb7bf
commit
b04b386180
11
.npmignore
Normal file
11
.npmignore
Normal file
@ -0,0 +1,11 @@
|
||||
.editorconfig
|
||||
.gitattributes
|
||||
.jscs.json
|
||||
.jshintignore
|
||||
.jshintrc
|
||||
.mailmap
|
||||
.travis.yml
|
||||
/build
|
||||
/speed
|
||||
/test
|
||||
/Gruntfile.js
|
@ -304,28 +304,11 @@ function commitDistFiles( next ) {
|
||||
var pkgClone = readJSON( "package.json" );
|
||||
delete pkgClone.scripts;
|
||||
fs.writeFileSync( "package.json", JSON.stringify( pkgClone, null, "\t" ) );
|
||||
fs.unlinkSync( ".gitignore" );
|
||||
// Add files to be committed
|
||||
git( [ "add", "package.json", devFile, minFile, mapFile, sizzleLoc ], function() {
|
||||
// Remove unneeded files
|
||||
git( [ "rm", "-r",
|
||||
"build",
|
||||
"speed",
|
||||
"test",
|
||||
".editorconfig",
|
||||
".gitattributes",
|
||||
".gitignore",
|
||||
".jscs.json",
|
||||
".jshintignore",
|
||||
".jshintrc",
|
||||
".mailmap",
|
||||
".travis.yml",
|
||||
"Gruntfile.js",
|
||||
"README.md"
|
||||
], function() {
|
||||
// Use force to add normally ignored files
|
||||
git( [ "add", "-f", "package.json", devFile, minFile, mapFile, sizzleLoc ], function() {
|
||||
git( [ "commit", "-m", releaseVersion ], next, debug );
|
||||
}, debug );
|
||||
}, debug );
|
||||
}
|
||||
|
||||
function tagRelease( next ) {
|
||||
|
Loading…
Reference in New Issue
Block a user