2.0.0 • Published 9 years ago

apeman-task-reacthtml v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

apeman-task-reacthtml

Build Status Code Climate Code Coverage npm Version JS Standard

apeman task to generate static html from react component.

Installation

$ npm install apeman-task-reacthtml --save-dev

Usage

  1. Define a task within Apemanfile.js
  2. Call the task via apeman task command.

Apemanfile.js

/** This is an example Apemanfile to use apeman-task-reacthtml */

'use strict'

module.exports = {
  $pkg: { /* ... */ },
  $tasks: {
    // Define your own task.
    'react:html': require('apeman-task-reacthtml')(
      'src/index.html.jsx',
      'public/index.html',
      {
        props: {}
        // Options
      }
    )
  }
}

Then,

$ apeman task my-task-01

Signature

apemanTaskReacthtml(src, dest, options) -> function

apeman task to generate static html from react component.

Args
NameTypeDefaultDescription
srcstringSource file name of component
deststringDestination file name
optionsObjectOptional settings.
options.propsObjectProps to render

License

This software is released under the MIT License.

Links

2.0.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago