Skip to content

akameco/s2s

Repository files navigation

s2s


Build Status Coverage Status tested with jest styled with prettier lerna All Contributors

Ultra-fast coding by AST assist

See Examples akameco/s2s-examples

Concept

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.

Articles

日本語

Users

SSconnect/ssconnect

If your company or project is using s2s, please open a PR and add yourself to this list (in alphabetical order please)

Quick Start

This is super small example. However Useful :) It is that initializing variable with flow information.

https://gyazo.com/c6de73c7c9044520fbbca95881c2a927

Install

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

Usage

create s2s.config.js

module.exports = {
  watch: './**/*.js',
  plugins: [
    {
      test: /.*.js$/,
      plugin: ['s2s-variable-initializing'],
    },
  ],
}

Run

$ yarn run flow init
$ yarn run flow
$ yarn run s2s

See Getting Started Exmaple

Combine plugins

plugins

More Info? See Examples.

More Examples

Shopping Cart (redux+flowtype+s2s)

Official Plugins

Contributors

Thanks goes to these wonderful people (emoji key):


akameco

💻 ⚠️ 💬 🤔 🚇

elzup

🤔 💻

erukiti

📝

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

License

MIT © akameco