You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
$ jscodeshift --help Usage: jscodeshift [OPTION]... PATH... or: jscodeshift [OPTION]... -t TRANSFORM_PATH PATH... or: jscodeshift [OPTION]... -t URL PATH... or: jscodeshift [OPTION]... --stdin < file_list.txt Apply transform logic in TRANSFORM_PATH (recursively) to every PATH. If --stdin is set, each line of the standard input is used as a path. Options: "..." behind an option means that it can be
はじめに 以前、jscodeshitという JavaScriptおよびTypeScriptコードのリファクタリングツールの紹介記事を書きました。 JavaScriptのリファクタリングツール「jscodeshift」の使い方 このツールは、ASTベースでコードを自在に変換でき、とても便利です。jscodeshiftは、Transform File(変換処理を記述するファイル)として変換処理を書くのですが、これまでJavaScriptで変換処理を書くことが多かったです。 しかし、Transform FileはTypeScriptで書くことが可能です。 最近、TypeScriptで変換処理を書いた際、その開発体験がとても良かったので紹介します。ASTベースのコーディングにTypeScriptの型推論や補完があると、開発が快適になることは想像しやすいでしょう。 この記事で出てくるコードやファイル
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く