Raw Files Plugin for DocPad
Copies all files in the raw directory to out. Useful for large files that cause out of memory error when placed in files directory.
npm install --save docpad-plugin-raw
git clone https://github.com/Hypercubed/docpad-plugin-raw.git
cd docpad-plugin-raw
npm install
make compile
make test
You can change the "cp" command as follows:
# ...
plugins:
raw:
commands:
raw: ['cp', '-Rnl', 'src/raw/*', 'out/' ]
app: ['cp', '-Rn', 'src/app/*', 'out/' ]
# ...
['cp', '-Rnl'...
will create hard links on unix-like systems.
Another example tested in Windows/DOS:
# ...
plugins:
raw:
commands:
raw: ['rsync', '-a', './src/raw/', './out/' ]
# ...
An example reported to work on OSX:
plugins:
raw:
commands:
# rsync
# -r recursive
# -u skip file if the destination file is newer
# -l copy any links over as well
raw : ['rsync', '-rul', 'src/raw/', 'out/' ]
Licensed under the incredibly permissive MIT License
Copyright © 2013+ J. Harshbarger