diff options
author | Aaron O'Mullan <aaron.omullan@friendco.de> | 2014-06-15 22:37:15 -0700 |
---|---|---|
committer | Aaron O'Mullan <aaron.omullan@friendco.de> | 2014-06-15 22:37:15 -0700 |
commit | bf7ffe6d4c5c5b150a34b4d5533939021ff60d8a (patch) | |
tree | c828d210ebbeba77b04aa1cc15cef1a9cb7255ca /lib | |
parent | ec7bc6b347f4313238325e64634e355449f6be5f (diff) | |
download | gitbook-bf7ffe6d4c5c5b150a34b4d5533939021ff60d8a.zip gitbook-bf7ffe6d4c5c5b150a34b4d5533939021ff60d8a.tar.gz gitbook-bf7ffe6d4c5c5b150a34b4d5533939021ff60d8a.tar.bz2 |
Skip extra files and folders in copy phase of generation
Diffstat (limited to 'lib')
-rw-r--r-- | lib/generate/fs.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/generate/fs.js b/lib/generate/fs.js index 12252e3..66530f3 100644 --- a/lib/generate/fs.js +++ b/lib/generate/fs.js @@ -16,9 +16,20 @@ var getFiles = function(path) { // Add extra rules to ignore common folders ig.addIgnoreRules([ + // Skip Git stuff '.git/', '.gitignore', - '.DS_Store' + + // Skip OS X meta data + '.DS_Store', + + // Skip stuff installed by plugins + 'node_modules', + + // Skip book outputs + '*.pdf', + '*.epub', + '*.mobi', ], '__custom_stuff'); // Push each file to our list |