Skip to content

fightingcat/babel-plugin-actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

babel-plugin-actions

Babel plugin to generate traceable type for the-actions.

Issues related to the-actions should be reporter on the-actions issue-tracker.

Install

npm install --save-dev babel-plugin-actions

Usage

Run:

babel --plugins actions script.js

Or add the plugin to your .babelrc configuration:

{
  "plugins": [ "actions" ]
}

Example

The plugin will compile the following code:

// actions.js
const UserAction = ActionCreator();
const OtherActions = {
    Example: ActionCreator()
}

into:

// actions.js
const UserAction = ActionCreator("actions.js: UserAction");
const OtherActions = {
    Example: ActionCreator("actions.js: OtherActions.Example")
}

About

Babel plugin to generate traceable type for the-actions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published