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

Commit

Permalink
Add initial-state-plugin to s2s-plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
akameco committed Oct 19, 2017
1 parent ba04ba5 commit 3c8211f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/s2s-plugins-redux/index.js
Expand Up @@ -8,6 +8,8 @@ const reducerCaseCreaterPlugin = require('babel-plugin-s2s-reducer-case-creater'
const actionRootPlugin = require('babel-plugin-s2s-action-root').default
const reducerTestCasePlugin = require('babel-plugin-s2s-reducer-test-case')
.default
const initilaStetePlugin = require('babel-plugin-s2s-initial-state-creater')
.default
const stateRootPlugin = require('babel-plugin-s2s-state-root').default
const reducerRootPlugin = require('babel-plugin-s2s-reducer-root').default

Expand Down Expand Up @@ -45,6 +47,10 @@ const plugins = [
{ input: 'src/**/actionTypes.js', output: rootActionPath },
],
},
{
test: /containers\/.+reducer.js/,
plugin: [initilaStetePlugin],
},
{
test: /containers\/.+reducer.js/,
input: 'reducer.test.js',
Expand Down
1 change: 1 addition & 0 deletions packages/s2s-plugins-redux/package.json
Expand Up @@ -18,6 +18,7 @@
"babel-plugin-s2s-action-creater": "^0.2.2",
"babel-plugin-s2s-action-root": "^0.3.2",
"babel-plugin-s2s-action-types": "^0.4.2",
"babel-plugin-s2s-initial-state-creater": "^0.0.0",
"babel-plugin-s2s-reducer-case-creater": "^0.1.1",
"babel-plugin-s2s-reducer-root": "^0.2.2",
"babel-plugin-s2s-reducer-test-case": "^0.4.2",
Expand Down

0 comments on commit 3c8211f

Please sign in to comment.