scripts-help

0.1.1 • Public • Published

scripts-help

Build Status tested with jest styled with prettier All Contributors

help for npm scripts

Motivation

  • No installation until needed
  • Not need to change existing code

Usage

package.json

{
  "scripts": {
    "start": "...",
    "build": "...",
    "build:dev": "...",
    "help": "npx scripts-help"
  }
}
$ yarn run help
  start
      Start Application

  build
      Run before start

  build:dev
      Build for dev

  help
      Show Help.

.scripts-help.json

{
  "start": "Start Application",
  "build": "Run before start",
  "build:dev": "Build for dev",
  "help": "Show Help."
}

Locale

.scripts-help.ja.json

{
  "start": "アプリケーションを実行します。先にbuildを実行してください",
  "build": "ビルドを実行",
  "build:dev": "dev環境向けにビルドを実行",
  "help": "ヘルプを表示"
}
$ yarn run help 'build:*'
  build
      ビルドを実行

  build:dev
      dev環境向けにビルドを実行

Create

create .scripts-help.json from package.json.

npm run help --create

Install?

If you want.

$ npm i -g scripts-help

Contributors

Thanks goes to these wonderful people (emoji key):


akameco

💻 📖 ⚠️ 🚇

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

License

MIT © akameco

Package Sidebar

Install

npm i scripts-help

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

7.48 kB

Total Files

6

Last publish

Collaborators

  • akameco