produce
A multi-rule multi-purpose source/target agnostic configurable transformer
Last updated 9 years ago by aularon .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install produce 
SYNC missed versions from official npm registry.

produce - WIP

A multi-rule multi-purpose source/target agnostic configurable transformer

Build Status Coverage Status

This module and documentation is still considered work-in-progress. Only no config example is added below for a preview

No Configuration

Install required plugins and it will automatically use them to produce output/serve content

Example: https://github.com/aularon/produce-example-no-conf

Simple conf

less: less | add_header_note(preview) | yuicompressor(dist) > css
pug,jade: pug | add_header_note(preview) > html
js: babel | add_header_note(preview) | closure > js

Advanced conf

{
  rules: [
    {
      source: /\.(pug|jade)$/,
      via: [
        'pug',
        {
          processor: 'add_header_note',
          modes: ['serve']
        },
      ],
      target: 'css'
    }
  ]
}

Terminology

  • Source.read(input)
  • Target.write(output)

CLI

proudce sourceDir targetDir # fs source and fs target
proudce sourceDir # fs source and http target

Current Tags

  • 0.4.1                                ...           latest (9 years ago)

7 Versions

  • 0.4.1                                ...           9 years ago
  • 0.4.0                                ...           9 years ago
  • 0.3.5                                ...           9 years ago
  • 0.3.3                                ...           9 years ago
  • 0.3.2                                ...           9 years ago
  • 0.3.1                                ...           9 years ago
  • 0.0.0                                ...           12 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 4
Last Month 0
Dependencies (1)
  • line git+https://github.com/etabits/node-line.git
Dev Dependencies (5)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |