@benmvp/cli
can be used in two ways. The primary way is as a CLI typically used within a package.json
or with npx
. Alternatively, you can interact with it via its Node API if it is to be used within a bigger CLI.
The CLI exposes the following commands:
benmvp create
- Creates a new library set up with infrastructure using@benmvp/cli
benmvp test
- Runs a one-time pass of typing, linting, unit tests & code coverage for the librarybenmvp start
- Runs the lib's tests in on-going watch mode during active developmentbenmvp build
- Builds the library into the desired module formats at the specified locationbenmvp integrate
- Runs additional integration tests for the library
The Node API exposes the following functions:
create()
- Creates a new library with the specified name set up with infrastructure using@benmvp/cli
test()
- Runs a one-time pass of the specified modes of testsstart()
- Runs the specified modes of tests in on-going watch mode during active developmentbuild()
- Builds the library into the desired module formats at the specified locationintegrate()
- Runs additional integration tests for the libraryrun()
- Parses the specified array of CLI arguments to runs the desired command