See Examples akameco/s2s-examples
Monitor your coding and generate code in real time.
When the file names match, a single Babel plugin is executed and the formatted code is reflected in the editor.
- You can use any editor.
- Just Babel Plugin. No lock in.
If your company or project is using s2s, please open a PR and add yourself to this list (in alphabetical order please)
This is super small example. However Useful :) It is that initializing variable with flow information.
yarn:
$ yarn add --dev s2s
npm:
$ npm install --save-dev s2s
And install the babel plugin.
$ yarn add --dev babel-plugin-s2s-variable-initializing flow-bin
create s2s.config.js
module.exports = {
watch: './**/*.js',
plugins: [
{
test: /.*.js$/,
plugin: ['s2s-variable-initializing'],
},
],
}
$ yarn run flow init
$ yarn run flow
$ yarn run s2s
More Info? See Examples.
Shopping Cart (redux+flowtype+s2s)
- babel-plugin-s2s-action-types
generate redux action types - babel-plugin-s2s-action-creater
generate redux action creater - babel-plugin-s2s-action-root
compose flow + redux action types - babel-plugin-s2s-state-root
compose flow + redux state types - babel-plugin-s2s-reducer-root
compose redux reducer - babel-plugin-s2s-reducer-test-case
create reducer test using switch/case
Thanks goes to these wonderful people (emoji key):
akameco 💻 |
elzup 🤔 💻 |
erukiti 📝 |
---|
This project follows the all-contributors specification. Contributions of any kind welcome!
MIT © akameco