node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »


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


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: [
          processor: 'add_header_note',
          modes: ['serve']
      target: 'css'


  • Target.write(output)


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