fro

Like grunt, but simple stream and transform all the things

npm install fro
2 downloads in the last week
8 downloads in the last month

fro

DO NOT USE - NOT READY

Like grunt, but simple stream and transform all the things

bin

Use Makefile to invoke fro to perform tasks with config.

  • arg0 is plugin name (an installed NPM module)
  • arg1 is fro task config file

Task config includes src and dest directories

fro globs src files and pipes them to plugin

Results are piped from plugin to dest

module

Just some utilities common to frontend task running?

Usage

npm install -g fro

Install a fro plugin or any module with a signature of:

var through = require('through');
module.exports = function (file) { return through() };

For example, brfs.

Create a config file that looks like:

{
  "src": "*.js",
  "dest": "dest/",
  "options": {
    "values": "passed to the task"
  }
}
  • src is a glob specifying files you want to run the task on
  • dest (optional) is the directory you want to save the output from the files to
  • The whole config object is passed to the task as the second param so you can include any other task specific options you like in an options property, or whatever.

Then, run the brfs task against the files you specify in your config JSON file:

fro --task brfs --config brfs.json
npm loves you