0.4.1 • Published 7 years ago

produce v0.4.1

Weekly downloads
8
License
MIT
Repository
github
Last release
7 years ago

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
0.4.1

7 years ago

0.4.0

7 years ago

0.3.5

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.0.0

11 years ago