See Examples akameco/s2s-examples
$ yarn add --dev s2s
$ npm install --save-dev s2s
And install the babel plugin as well.
$ yarn add --dev babel-plugin-s2s-action-creater babel-plugin-s2s-action-types
create s2s.config.js
module.exports = {
watch: './**/*.js',
plugins: [
{
test: /actionTypes.js$/,
plugin: ['s2s-action-types', { removePrefix: 'src/containers' }],
},
{
test: /actionTypes.js$/,
output: 'actions.js',
plugin: ['s2s-action-creater'],
},
],
templates: [
{ test: /reducer.js/, input: 'reducer.js' },
],
}
$ npm run s2s
Thanks goes to these wonderful people (emoji key):
akameco 💻 |
elzup 🤔 |
---|
This project follows the all-contributors specification. Contributions of any kind welcome!
MIT © akameco