recce
v5.5.23
Published
Development tools for TypeScript libraries.
Downloads
43
Readme
Recce
Usage
$ npm install -g recce
$ recce COMMAND
running command...
$ recce (-v|--version|version)
recce/5.5.23 linux-x64 node-v14.15.4
$ recce --help [COMMAND]
USAGE
$ recce COMMAND
...
Commands
recce build
Bundle the library for publishing.
USAGE
$ recce build
OPTIONS
-e, --entry=path Path to the library entry point(s).
Can be specified multiple times.
-m, --module=cjs|umd|esm CommonJS, Universal Module Definition or EcmaScript modules.
EcmaScript modules are always enabled.
Can be specified multiple times.
-o, --output=directory Redirect output structure to a directory.
-p, --project=path Path to project's configuration file, or to a folder with a 'tsconfig.json'.
--[no-]clean Delete the output directory in advance.
Enabled by default.
--[no-]concatenate-modules Find segments of the module graph which
can be safely concatenated into a single module.
Enabled by default.
--machine-readable Produce machine readable JSON output.
--[no-]minimize Emit minifed JavaScript. Enalbed by default.
--stats Write JSON files with compilation statistics.
EXAMPLES
$ recce build -p [directory] -m esm -e src/hello.ts
$ recce build -p [directory] -m cjs -e src/hello.ts -e src/world.ts
$ recce build -m cjs -m umd -m esm -e src/hello.ts -e src/world.ts
$ recce build --no-clean --no-minimize -m umd -e src/hello.ts
recce help [COMMAND]
Print usage and options.
USAGE
$ recce help [COMMAND]
ARGUMENTS
COMMAND Command to show help for.
OPTIONS
--all See all commands in CLI.
recce test
Run tests on Node.js and in the browser.
USAGE
$ recce test
OPTIONS
-b, --browser=pattern Glob pattern that matches test files to run on Node.js.
Can be specified multiple times.
-n, --node=pattern Glob pattern that matches test files to run in the browser.
Can be specified multiple times.
-p, --project=path Path to project's configuration file, or to a folder with a 'tsconfig.json'.
--[no-]capture-console Capture all console output and pipe it to the terminal.
Disabled by default.
--[no-]coverage Collect and report test coverage.
Enabled by default.
--coverage-exclude=pattern Glob pattern that matches files to execlude from coverage.
Can be specified multiple times.
--reporter=reporter Test coverage reporter(s): lcovonly, text, clover, cobertura, html,
json, json-summary, lcov, none, teamcity, text-lcov, text-summary.
Can be specified multiple times.
EXAMPLES
$ recce test --browser 'src/**.spec.ts'
$ recce test -p [directory] --browser 'src/**.spec.ts' --browser 'test/**.spec.ts'
$ recce test -p [directory] --node 'src/**.spec.ts' --node 'test/**.spec.ts'
$ recce test -p [directory] --node 'src/**.spec.ts' --browser 'src/**.spec.ts'