Skip to content

Commit

Permalink
Release: remove extraneous files from dist during release
Browse files Browse the repository at this point in the history
  • Loading branch information
timmywil committed May 13, 2016
1 parent 7cb6958 commit 376caf4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ module.exports = function( Release ) {

module.exports.dependencies = [
"[email protected]",
"shelljs@0.2.6",
"shelljs@0.7.0",
"[email protected]"
];
15 changes: 14 additions & 1 deletion build/release/dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,20 @@ module.exports = function( Release, complete ) {

// Copy dist files
var distFolder = Release.dir.dist + "/dist",
externalFolder = Release.dir.dist + "/external";
externalFolder = Release.dir.dist + "/external",
rmIgnore = [
"README.md",
"node_modules"
].map( function( file ) {
return Release.dir.dist + "/" + file;
} );

shell.config.globOptions = {
ignore: rmIgnore
};

// Remove extraneous files before copy
shell.rm( "-rf", Release.dir.dist + "/**/*" );

shell.mkdir( "-p", distFolder );
[
Expand Down

0 comments on commit 376caf4

Please sign in to comment.