mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Release: remove extraneous files from dist during release
Fixes gh-3094 Close gh-3116
This commit is contained in:
parent
7cb6958ab8
commit
376caf4da1
@ -55,6 +55,6 @@ module.exports = function( Release ) {
|
|||||||
|
|
||||||
module.exports.dependencies = [
|
module.exports.dependencies = [
|
||||||
"archiver@0.14.2",
|
"archiver@0.14.2",
|
||||||
"shelljs@0.2.6",
|
"shelljs@0.7.0",
|
||||||
"npm@2.3.0"
|
"npm@2.3.0"
|
||||||
];
|
];
|
||||||
|
@ -56,7 +56,20 @@ module.exports = function( Release, complete ) {
|
|||||||
|
|
||||||
// Copy dist files
|
// Copy dist files
|
||||||
var distFolder = Release.dir.dist + "/dist",
|
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 );
|
shell.mkdir( "-p", distFolder );
|
||||||
[
|
[
|
||||||
|
Loading…
Reference in New Issue
Block a user