0.1.1 • Published 6 years ago

scripts-help v0.1.1

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

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