1.0.1 • Published 5 years ago

babel-plugin-s2s-state-root v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

babel-plugin-s2s-state-root

Build Status styled with prettier

s2s plugin: compose state types

Install

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

Example

IN:

OUT:

// @flow
import type { State as App } from "../../__fixtures__/app/reducer";
import type { State as Bob } from "../../__fixtures__/bob/reducer";

export type State = {
  App: App;
  Bob: Bob;
};

Usage

{
  ['s2s-state-root', {
    input: 'containers/**/reducer.js',
    output: 'types/state.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

License

MIT © akameco

1.0.1

5 years ago

1.0.0

5 years ago

0.2.10

6 years ago

0.2.9

6 years ago

0.2.8

6 years ago

0.2.7

7 years ago

0.2.6

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago