# babel-plugin-s2s-redux-actions-root

> generate redux actions root

Latest version **0.0.2** (published 2017-11-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-s2s-redux-actions-root
pnpm add babel-plugin-s2s-redux-actions-root
yarn add babel-plugin-s2s-redux-actions-root
bun add babel-plugin-s2s-redux-actions-root
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2017-11-17 |
| First published | 2017-11-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | candle |
| Maintainers | progted |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-s2s-redux-actions-root
- npm.io page: https://npm.io/package/babel-plugin-s2s-redux-actions-root

## Dependencies (4)

- [globby](https://npm.io/package/globby.md) ^6.1.0
- [s2s-utils](https://npm.io/package/s2s-utils.md) ^0.4.2
- [babel-types](https://npm.io/package/babel-types.md) ^6.26.0
- [babel-preset-es2015](https://npm.io/package/babel-preset-es2015.md) ^6.24.1

## Recent versions

- 0.0.2 (latest) — 2017-11-17
- 0.0.1 — 2017-11-10

## README

# babel-plugin-s2s-redux-actions-root

> generate redux actions root

## Install

```
$ yarn add --dev babel-plugin-s2s-redux-actions-root
```

## s2s.config.js

s2s-redux-actions plugin watch the `src/actions/(?!.*index).*\.js` files

```js
module.exports = {
  plugins: [
    {
      test: /src\/actions\/(?!.*index).*\.js/,
      output: "index.js",
      plugin: ['s2s-redux-actions-root',
      { input: 'src/actions/*.js', output: "src/actions/index.js" }]
    }
  ]
}
```
## Start s2s

Start the s2s with yarn command

`yarn run s2s`

## Usage

#### When create actions file

When you create a `src/actions/*.js`, this plugin inserts into index.js automatically.

For example you create a `src/actions/user.js`. It inserts into index.js

#### Out:

```js
import { createAction } from 'redux-actions'
export * from "./user";
```

# Test

This plugin has two type of test files. \
First is babel plugin main test file named `test.js` on root direcotry. \
Next is `test/*.js` that is test target files. 

Run this command.

` npm run test`

Test will run and you can see what happen.

---
_Source: https://npm.io/package/babel-plugin-s2s-redux-actions-root · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
