Skip to content
Permalink
Browse files

Release script: Add .npmignore and keep .gitignore when creating the tag

  • Loading branch information...
timmywil committed Nov 15, 2013
1 parent 6f74abb commit b04b3861802606a114c936e753c0f20da6e8b236
Showing with 14 additions and 20 deletions.
  1. +11 −0 .npmignore
  2. +3 −20 build/release.js
@@ -0,0 +1,11 @@
.editorconfig
.gitattributes
.jscs.json
.jshintignore
.jshintrc
.mailmap
.travis.yml
/build
/speed
/test
/Gruntfile.js
@@ -304,27 +304,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 );
}

0 comments on commit b04b386

Please sign in to comment.
You can’t perform that action at this time.