src/copy.js
function(routes, customFiles) {

	// Always ignore the following files
	const ignoredFiles = [
		'**/CVS',
		'**/.git',
		'**/.svn',
		'**/.hg',
		'**/.lock-wscript',
		'**/.wafpickle-N'
	]

	// Extract the path out of the routes
	const ignoredRoutes = routes.map((route) => route.path)

	// Return all ignored files
	return [
		...ignoredFiles,
		...ignoredRoutes,
		...customFiles
	]

}
function(routes, customFiles) {

	// Always ignore the following files
	const ignoredFiles = [
		'**/CVS',
		'**/.git',
		'**/.svn',
		'**/.hg',
		'**/.lock-wscript',
		'**/.wafpickle-N'
	]

	// Extract the path out of the routes
	const ignoredRoutes = routes.map((route) => route.path)

	// Return all ignored files
	return [
		...ignoredFiles,
		...ignoredRoutes,
		...customFiles
	]

}
function ( routes , customFiles ) { // Always ignore the following files const ignoredFiles = [ '**/CVS' , '**/.git' , '**/.svn' , '**/.hg' , '**/.lock-wscript' , '**/.wafpickle-N' ] // Extract the path out of the routes const ignoredRoutes = routes . map ( ( route ) => route . path ) // Return all ignored files return [ ... ignoredFiles , ... ignoredRoutes , ... customFiles ] }
Get a list of files which should not be copied.
@param {Array} routes - Array of route configurations.
@param {Array} customFiles - Array of user-defined globs.
@returns {Array} ignoredFiles
Get a list of files which should not be copied .