Giter VIP home page Giter VIP logo

docpad-plugin-raw's Introduction

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 version

Gittip donate button Paypal donate button

Install

npm install --save docpad-plugin-raw

Install for testing

git clone https://github.com/Hypercubed/docpad-plugin-raw.git
cd docpad-plugin-raw
npm install
make compile

Test

make test

Configuration

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/' ]

License

Licensed under the incredibly permissive MIT License
Copyright © 2013+ J. Harshbarger

docpad-plugin-raw's People

Contributors

hypercubed avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.