Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Latest commit

 

History

History

cli

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

⬛️ cli

npm linux windows coverage deps

CLI entry point, ESM included.

Install

$ yarn add --dev @start/cli
# or
$ npm install --save-dev @start/cli

Usage

Example

// package.json

"start": {
  // `./tasks` by default if there is no `preset` option
  "file": "./my-tasks-file",
  // module name as a preset, overrides `file` option
  "preset": "my-awesome-start-preset",
  // modules to require before anything else, kinda `node -r`
  "require": [
    // module name
    "whatever-require-hook-lib",
    // or a tuple with settings, just like in Babel
    [
      "@babel/register",
      {
        "extensions": [
          ".ts",
          ".js"
        ]
      }
    ]
  ],
  // reporter module name
  "reporter": "@start/reporter-verbose"
}
$ yarn start

One of the following task names is required:
* foo
* bar
* baz
$ yarn start foo
$ yarn start bar arg
$ yarn start baz arg1 arg2