【翻訳】npm-scripts

npm-scriptsのドキュメント冒頭が読みにくかったので整形ついでに翻訳。

マークダウン変換サービスも便利なので一応手順もメモ。

(手順)

1.ドキュメントをテキストエディタにペースト  

2.テキストエディタで適当に絡む区切りをタブに置換するなどしてざっと整形

3.エクセルペースト

4.説明部分をGoogle翻訳にペースト

5.翻訳結果をエクセルにペースト

6.マークダウン変換サービスを利用して変換 Markdown Tables generator - TablesGenerator.com

7.ブログにペースト

ドキュメント整形と翻訳結果
キーワード 和訳 説明
prepublish パッケージがパックされて公開される前に実行します。ローカルのnpm installにも引数はありません。 (下記参照) Run BEFORE the package is packed and published, as well as on local npm install without any arguments. (See below)
prepare パッケージがパッキングされパブリッシュされる前と、引数なしでローカルのnpmにインストールされる(下記参照)の両方で実行します。これはprepublishの後に実行されますが、prepublishOnlyの前に実行されます。 Run both BEFORE the package is packed and published, and on local npm install without any arguments (See below). This is run AFTER prepublish, but BEFORE prepublishOnly.
prepublishOnly パッケージが準備され、パックされる前に実行します.npmでのみ公開します。 (下記参照。) Run BEFORE the package is prepared and packed, ONLY on npm publish. (See below.)
prepack tarballがパックされる前に実行します(npm pack、npm publish、およびgit依存関係のインストール時) run BEFORE a tarball is packed (on npm pack, npm publish, and when installing git dependencies)
postpack tarballが生成されて最終目的地に移動した後に実行します。 Run AFTER the tarball has been generated and moved to its final destination.
publish, postpublish パッケージが公開された後に実行します。 Run AFTER the package is published.
preinstall パッケージがインストールされる前に実行します Run BEFORE the package is installed
install, postinstall パッケージがインストールされた後に実行します。 Run AFTER the package is installed.
preuninstall, uninstall パッケージがアンインストールされる前に実行します。 Run BEFORE the package is uninstalled.
postuninstall パッケージがアンインストールされた後に実行します。 Run AFTER the package is uninstalled.
preversion パッケージのバージョンをバンプする前に実行します。 Run BEFORE bumping the package version.
version パッケージバージョンをバンプしてから、コミットする前に実行します。 Run AFTER bumping the package version, but BEFORE commit.
postversion AFTERでパッケージ・バージョンをバンプし、コミット後に実行します。 Run AFTER bumping the package version, and AFTER commit.
pretest, test, posttest npm testコマンドで実行します。 Run by the npm test command.
prestop, stop, poststop npm stopコマンドで実行します。 Run by the npm stop command.
prestart, start, poststart npm startコマンドで実行します。 Run by the npm start command.
prerestart, restart, postrestart npm restartコマンドで実行します。注意 再起動スクリプトが提供されていない場合、npm restartはstopスクリプトとstartスクリプトを実行します。 Run by the npm restart command. Note npm restart will run the stop and start scripts if no restart script is provided.
preshrinkwrap, shrinkwrap, postshrinkwrap npm shrinkwrapコマンドで実行します。 Run by the npm shrinkwrap command.