Overview
@morjs/cli is the entry-point package for the MorJS toolchain. It bundles all first-party plugins and exposes them through two executable commands.
| Property | Value |
|---|---|
| Package | @morjs/cli |
| Version | 1.0.113 |
| License | MIT |
| Node | >= 12.13.0 |
Installation
Binary commands
| Binary | Resolves to |
|---|---|
mor | ./bin/cli.js |
morjs | ./bin/cli.js |
morjs is provided as an alias for environments where mor may conflict with another tool.
Usage
Bundled dependencies
@morjs/cli ships with the following first-party packages as direct dependencies. You do not need to install them separately.
@morjs/plugin-compiler
1.0.113 — Webpack-based multi-target mini-program compiler.@morjs/plugin-composer
1.0.72 — Multi-module mini-program composition engine.@morjs/plugin-analyzer
1.0.71 — Bundle size analysis.@morjs/plugin-generator
1.0.71 — Project and file scaffolding.@morjs/plugin-mocker
1.0.71 — API mocking for development.@morjs/utils
1.0.71 — Shared utilities used across all MorJS packages.v8-compile-cache^2.3.0— Speeds up Node.js startup by caching compiled V8 bytecode.youch^3.2.2— Pretty-prints Node.js error stacks.youch-terminal^2.1.5— Terminal rendering foryouchoutput.
Programmatic usage
Behind everymor command is a Takin instance. You can replicate CLI behaviour programmatically: