Registry / web-framework / mojito-cli-build

mojito-cli-build

JSON →
library0.0.1jsnpmunverified

Provides the `build` command for Yahoo's Mojito CLI tool, used with the Mojito web application framework. This package is a plugin for `mojito-cli` and is part of the Mojito ecosystem. Version 0.0.1 is an early release. It requires Node.js >0.8 and npm >1.1. The package is currently work-in-progress and has limited documentation. It is specific to the Mojito framework, which is no longer actively maintained.

npm install mojito-cli-build
INSTALL
IMPORT
SIG · MOJITO-CLI-BUILD
M
mojito-cli-build
web-frameworkjavascriptv0.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

build
import build from 'mojito-cli-build'
const build = require('mojito-cli-build')
ESM-only package; default export is the build function.
Builder
import { Builder } from 'mojito-cli-build'
const Builder = require('mojito-cli-build').Builder
Named export for the Builder class.
createBuildCommand
import { createBuildCommand } from 'mojito-cli-build'
const createBuildCommand = require('mojito-cli-build').createBuildCommand
Factory function to create the CLI build command.

Shows how to programmatically add the build command to a Mojito CLI instance and execute it.

import { createBuildCommand } from 'mojito-cli-build'; import { CLI } from 'mojito-cli'; const cli = new CLI(); cli.addCommand(createBuildCommand()); cli.run(process.argv);
mojito --version
Debug
Known issues
deprecatedPackage is part of deprecated Mojito framework.
fix
Migrate to a supported web framework.
affects: >=0.0.0
gotchaRequires mojito-cli as a peer dependency.
fix
Ensure mojito-cli is installed alongside.
affects: >=0.0.0
gotchaVersion 0.0.1 is unstable; API may change without notice.
fix
Pin exact version and monitor changes.
affects: 0.0.1
gotchaOnly works with Node.js >0.8 and npm >1.1.
fix
Use older Node/npm versions or consider alternatives.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'mojito-cli'
Missing peer dependency mojito-cli.
fix
npm install mojito-cli
TypeError: cli.addCommand is not a function
Incorrect usage; addCommand expects a command object.
fix
Ensure createBuildCommand() returns a valid command object.
SyntaxError: Unexpected token import
Using CommonJS require with an ESM-only package.
fix
Use import syntax or enable ESM in your project.
Upgrade
Version history
0.0.1latest on npm
Audit
Dependencies
mojito-clirequiredRuntime requirement to register the build command
Agent activity
1 hits · last 30 days
Bingbot
1
Resources
mojito-cli-build — npm install mojito-cli-build · libregistry