aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2013-11-15 10:23:23 -0500
committerTimmy Willison <timmywillisn@gmail.com>2013-11-15 10:35:48 -0500
commit9b860e922714a5c918a74e9a2df1cac30704fb19 (patch)
treeacd7a75d4667a49882d785b197a2d06fe3954cd4
parent1f112c9f4f0590f7bf037341d19236e70820a957 (diff)
downloadjquery-9b860e922714a5c918a74e9a2df1cac30704fb19.tar.gz
jquery-9b860e922714a5c918a74e9a2df1cac30704fb19.zip
Release script: Add .npmignore and keep .gitignore when creating the tag
-rw-r--r--.npmignore11
-rw-r--r--build/release.js23
2 files changed, 14 insertions, 20 deletions
diff --git a/.npmignore b/.npmignore
new file mode 100644
index 000000000..916b4c532
--- /dev/null
+++ b/.npmignore
@@ -0,0 +1,11 @@
+.editorconfig
+.gitattributes
+.jscs.json
+.jshintignore
+.jshintrc
+.mailmap
+.travis.yml
+/build
+/speed
+/test
+/Gruntfile.js
diff --git a/build/release.js b/build/release.js
index 8071c05dd..b7c942fac 100644
--- a/build/release.js
+++ b/build/release.js
@@ -303,27 +303,10 @@ 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() {
- git( [ "commit", "-m", releaseVersion ], next, debug );
- }, debug );
+ // Use force to add normally ignored files
+ git( [ "add", "-f", "package.json", devFile, minFile, mapFile, sizzleLoc ], function() {
+ git( [ "commit", "-m", releaseVersion ], next, debug );
}, debug );
}