Skip to content

Commit bf7ffe6

Browse files
author
Aaron O'Mullan
committed
Skip extra files and folders in copy phase of generation
1 parent ec7bc6b commit bf7ffe6

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

lib/generate/fs.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,20 @@ var getFiles = function(path) {
1616

1717
// Add extra rules to ignore common folders
1818
ig.addIgnoreRules([
19+
// Skip Git stuff
1920
'.git/',
2021
'.gitignore',
21-
'.DS_Store'
22+
23+
// Skip OS X meta data
24+
'.DS_Store',
25+
26+
// Skip stuff installed by plugins
27+
'node_modules',
28+
29+
// Skip book outputs
30+
'*.pdf',
31+
'*.epub',
32+
'*.mobi',
2233
], '__custom_stuff');
2334

2435
// Push each file to our list

0 commit comments

Comments
 (0)