Skip to content

akameco/s2s

Repository files navigation

s2s

Build Status Coverage Status tested with jest styled with prettier

Ultra-fast coding by AST assist

See Examples akameco/s2s-examples

Quick Start

Install

yarn:

$ yarn add --dev s2s

npm:

$ 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

Usage

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' },
  ],
}

Run

$ npm run s2s

Contributors

Thanks goes to these wonderful people (emoji key):


akameco

💻 ⚠️ 💬 🤔

elzup

🤔

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT © akameco