Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

akameco/babel-plugin-s2s-reducer-root

Repository files navigation

Moved. See s2s-plugins


babel-plugin-s2s-reducer-root

Build Status styled with prettier

s2s plugin: compose state types

Install

$ npm install --save-dev babel-plugin-s2s-reducer-root

Example

IN:

OUT:

// @flow
import { combineReducers } from 'redux';
import App from "../__fixtures__/app/reducer";
import Bob from "../__fixtures__/bob/reducer";

export default combineReducers({
  App,
  Bob
});

Usage

{
  ['s2s-reducer-root', {
    input: 'containers/**/reducer.js',
    output: 'reducer.js',
    globOptions: {}
  }]
}

input

type: string
required: true

glob pattern.

output

type: string
required: true

outputh path.

globOptions

See https://github.com/isaacs/node-glob#options

Related

License

MIT © akameco

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published