• Stars
    star
    263
  • Rank 154,743 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Coding time Compile. A tool to write code fastest.

s2s


Build Status Build status Coverage Status tested with jest styled with prettier lerna MIT License Donate Code of Conduct Examples All Contributors

日本語 (readme の最新版は日本語です)

Ultra-fast coding by AST assist

See Examples 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 short example. It is enough to know the power of s2s :)

It's a first example that s2s initialize variables with the type infomations in Flow.

https://gyazo.com/c6de73c7c9044520fbbca95881c2a927

Preparation

Clone the repository and install dependencies.

$ git clone --depth=1 [email protected]:akameco/s2s.git
$ cd examples/getting-started
$ yarn

Usage

Check out s2s.config.js in the root of the project. This is a setting file.

watch set an direcotry that s2s watches, and plugins set an array of the plugins.

You can write easy the file if you are familer with webpack.

For more infomations, see Config.

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

Run

$ yarn run s2s

Opened src/index.js with your favorite editor, type var user: User and save it.

Would s2s generate default values?

It finishes Quick Start. Thanks!

See Getting Started Exmaple

Combine plugins

With combinations of some plugins, it makes s2s more useful.

This example is that s2s generates an constant of Action and an Action Creator, a Reducer, a test of Reducer when you wrote the definition of the type of Action.

plugins

More Info? See Examples.

More Examples

More Info? See Examples.

Official Plugins

Contributions

For all contributions we are always welcome. and we are working with all-contributors Specifications in this repository.

If you contributed our project with writting a code and test, then type this command.

$ yarn run add-contributors <GitHub Username> code,test

If you contibuted our project with adding documents and fixing them, then type this command.

$ yarn run add-contributors <GitHub Username> doc

For more infomations, refer all-contributors.

We will be welcome your contributions!

Contributors

Thanks goes to these wonderful people (emoji key):

akameco
akameco

💻 ⚠️ 💬 🤔 🚇
elzup
elzup

🤔 💻
erukiti
erukiti

📝 💻 ⚠️
asciian
asciian

📖
kamijin_fanta
kamijin_fanta

💻 📖
pocketberserker
pocketberserker

📖
ygkn
ygkn

💻

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

License

MIT © akameco

More Repositories

1

PixivDeck

💕 pixiv client for Desktop like TweetDeck 💕
JavaScript
437
star
2

pixiv-app-api

Promise base pixiv API client
TypeScript
218
star
3

babel-plugin-react-intl-auto

i18n for the component age. Auto management react-intl ID.
TypeScript
212
star
4

extract-react-intl-messages

extract react intl messages
TypeScript
184
star
5

styled-spinkit

Spinner Loading components
TypeScript
92
star
6

styled-style

css modules like styled-components
JavaScript
91
star
7

babel-plugin-react-data-testid

babel plugin for react data-testid attributes
TypeScript
30
star
8

yamada

🐾 best image viewer while at work.
JavaScript
29
star
9

electron-load-devtool

Easily load dev tool for electron
JavaScript
24
star
10

golangify

Golang like error handling for async/await and sync function.
JavaScript
21
star
11

eslint-config-precure

ESLint shareable config for precure
JavaScript
20
star
12

reducer-tester

Utilities for testing redux reducers
TypeScript
19
star
13

extract-react-intl

Extract react-intl messages
JavaScript
18
star
14

electron-referer

Referer control for Electron app.
JavaScript
17
star
15

prioritize-yarn

If the project has yarn.lock, change npm install to yarn.
JavaScript
16
star
16

redux-actions-type

easy typing of redux action
TypeScript
15
star
17

babel-preset-zero

babelrc for zero config
JavaScript
14
star
18

pixiv-dl

pixiv image downloader
JavaScript
12
star
19

akameco

akameco CLI
JavaScript
12
star
20

babel-plugin-twitter

import from tweeeeeeet!!!!!!!!!!!!!
JavaScript
12
star
21

electron-terminal-open

Open App from Command Line Interface for Electron
Shell
11
star
22

sana-voice

さなボタンからランダムに再生するCLI
JavaScript
11
star
23

react-s3-uploader-sample

JavaScript
11
star
24

touch-alt

Create from a template instead of a new file
JavaScript
10
star
25

try-xss-electron

ElectronアプリのXSSでrm -fr /を実行する
JavaScript
9
star
26

pixiv

pixiv api client
JavaScript
8
star
27

babel-plugin-jsx-target-blank

add 'noopener noreferrer' to external link for security
JavaScript
8
star
28

yaml-flat-loader

JavaScript
8
star
29

babel-plugin-react-remove-classname

babel plugin for remove classname
TypeScript
8
star
30

pixiv-tag-downloader

タグ検索に特化したCLIのpixivの画像ダウンローダー
JavaScript
7
star
31

create-babelrc

create .babelrc using package.json
JavaScript
7
star
32

readme-gen

README generator for node.js.
JavaScript
7
star
33

npm-popute

watch 'ポプテピピック' while running npm install
JavaScript
6
star
34

twada-stand

テストを書いてない書いてない人の前に例のスタンドが現れます
JavaScript
6
star
35

pixiv-img

pixiv image downloader
JavaScript
6
star
36

kimi-no-na-ha

君の名は。
Shell
6
star
37

pixiv-dl-preview

pixivイラストダウンローダー + 画像プレビュー
JavaScript
6
star
38

s2s-plugins

s2s plugins
JavaScript
5
star
39

popute-random-img

ポプテピピックをターミナルで楽しむ
JavaScript
5
star
40

cli-to-api

transform cli to JSON API Server
JavaScript
5
star
41

babel-plugin-float-equal

Babel plugin for float equal
JavaScript
5
star
42

babel-plugin-fizzbuzz

Babel Plugin for fizzbuzz
JavaScript
5
star
43

s2s-examples

s2s examples (react,redux,flowtype...)
JavaScript
4
star
44

capture-element

JavaScript
4
star
45

jest-yaml-transform

Jest transform plugin. transform yaml to Object.
JavaScript
4
star
46

redux-observable-example

TypeScript
4
star
47

phoenix-react-sample-app

phoenix + react のサンプルアプリケーション
JavaScript
4
star
48

symphogear

cacheable mp3 player from files and url for CLI
JavaScript
3
star
49

qiita-infinite-more

Qiitaのフィードに無限スクロールを追加
JavaScript
3
star
50

read-babelrc-up

Read the closet .babelrc file
JavaScript
3
star
51

github-kusa

Check the grass of GitHub at the terminal for macOS
JavaScript
3
star
52

how-to-test-reducers

JavaScript
3
star
53

react-native-counter-with-styled-components

JavaScript
3
star
54

babel-plugin-create-redux-action-func

JavaScript
3
star
55

generator-ts-lib

Scaffold node module with TypeScript.
JavaScript
3
star
56

typed-assign

Object.assingn, Overwrite when type mismatch
JavaScript
2
star
57

koharu

小春
JavaScript
2
star
58

npm-src

ghq for npm
JavaScript
2
star
59

babel-plugin-create-redux-action-type

JavaScript
2
star
60

pixiv-auth-got

JavaScript
2
star
61

npm-cd

JavaScript
2
star
62

babel-plugin-redux-action-compose

JavaScript
2
star
63

npm-pixiv

watch pixiv daily ranking while running npm install
JavaScript
2
star
64

electron-args

CLI helper for electron
JavaScript
2
star
65

autocomplete-date

Atom autocomplete date
JavaScript
2
star
66

lux-event

get lux value by eventemitter for osx user
JavaScript
2
star
67

github-weekly-activity

TypeScript
1
star
68

greasemonkey

greasemonkey plugin
JavaScript
1
star
69

rtl-snapshot-diff-example

JavaScript
1
star
70

git-grep-edit

git grep + peco + editor
Shell
1
star
71

akameco.github.io

CSS
1
star
72

vimpr

akameco vimperator plugins
JavaScript
1
star
73

electron-updater-example

JavaScript
1
star
74

ts-sum

JavaScript
1
star
75

ambient-light

Get ambient light in OSX
JavaScript
1
star
76

babel-plugin-react-remove-classname-test

babel plugin for remove classname
JavaScript
1
star
77

gcd-cli

GitHub cd
Shell
1
star
78

redux-saga-example

JavaScript
1
star
79

natori.proxy

proxy for 名取
JavaScript
1
star
80

use-actions

redux use-actions for me
TypeScript
1
star
81

morse-jp

This is a tool that converts 'Text' and 'Morse cord' to each other
JavaScript
1
star
82

pre-notranslate

Do not translate source code chrome extension
JavaScript
1
star
83

babel-plugin-s2s-action-creater

generate action creater
JavaScript
1
star
84

envrc-to-interface

TypeScript
1
star
85

find-data-test

JavaScript
1
star
86

ptils

utils for package.json
TypeScript
1
star
87

eslint-config-zero

eslint-config-zero
JavaScript
1
star
88

babel-plugin-react-path-display

babel plugin for react display name with file path prefix.
JavaScript
1
star
89

webpack-config-type-definition-example

JavaScript
1
star
90

Brewfile

Auto backup Brewfile by launchd.
Ruby
1
star
91

redux-async-qiita

redux async example with qiita api
JavaScript
1
star
92

babel-plugin-console-with-loc

babel plugin for console.log with loc
JavaScript
1
star
93

dotfiles

dotfiles
Vim Script
1
star
94

jamstack-intro

HTML
1
star
95

electron-github-actions

JavaScript
1
star
96

abematron

abema.tv for desktop
JavaScript
1
star
97

epic-tester

easy Epic test
JavaScript
1
star
98

jest-yaml-flat-transfrom

JavaScript
1
star
99

add-author-to-all-contributors

JavaScript
1
star
100

styled-style-example

JavaScript
1
star