npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mojito-cli

v0.2.0

Published

The mojito-cli package provides command line helpers for Mojito developers.

Downloads

14

Readme

mojito-cli Build Status

mojito-cli is a command-line tool for Mojito application developers. The components of mojito that are unrelated to the core library and runtime will be moving to separate packages.

* * * For more information on the command-line package changes and the current status, see the mojito-cli Wiki. * * *

Install mojito-cli

  1. With npm, do the following:

     $ npm install --global mojito-cli
  2. Confirm that mojito-cli has been installed.

     $ mojito help

Note that if mojito was already installed globally, it will be uninstalled. It is recommended to only install the core mojito package as a local dependency in your Mojito application. Users should not lose any functionality.

Quick Start

  1. Create an app (which installs mojito locally using npm) and a mojit.

     $ mojito create app myapp
     $ cd myapp
     $ mojito create mojito hellomojit
  2. Start the server.

     $ mojito start
  3. In a browser, open the following URL: http://localhost:8666/@hellomojit/index

Commands

help

To show top-level help for this command-line tool:

$ mojito help

To show help for a specific command:

$ mojito help <command>

version

To show the version for mojito-cli:

$ mojito version

To show the version of an application, run the following from the application directory:

$ mojito version app

The version of the mojito runtime installed locally to your app will be displayed as well.

To show the version of a mojit, run the following from the application directory:

$ mojito version mojit <mojit-name>

create

To generate boilerplate files from the Mojito archetypes or other templates:

$ mojito create [options] <type> [subtype] <name>
$ mojito create [options] <from> <to>

To learn how to do some simple key/value replacement, see mojito-cli-create.

build

To generate a static snapshot of your Mojito application:

$ mojito build [options] html5app [dest]

See mojito-cli-build for more information.

doc

To generate API documentation using yuidocjs:

$ mojito doc [options] <app|mojit|mojito> [name]

See also mojito-cli-doc.

jslint

To find common coding pitfalls with static analysis using jslint:

$ mojito jslint [app|mojit] <path>

See mojito-cli-jslint.

start

To start the server and run the application:

$ mojito start [<port>] [--context key1:value1,key2:value2]

The port number specified in the command above overrides the port number in the application configuration file, application.json. The default port number is 8666. See Specifying Context to learn how to use the --context option.

See mojito-cli-start.

test

To run unit tests for a Mojito application:

$  mojito test app

To run unit tests for a specific mojit:

$ mojito test mojit <mojit-name>

Or:

$ mojito test mojit <mojit-path>

See mojito-cli-test for more details.

other...

When you are in the top level of a Mojito application directory, you can perform other Mojito commands which are delegated to the locally installed mojito package. More information is provided in Mojito Command Line.

Node packages accessible via require that begin with mojito-cli- can also be invoked, similar to git, brew, and yogi. For example, if mojito-cli-foo is installed in your $NODE_PATH, then mojito foo will invoke it.

Discussion/Forums

http://developer.yahoo.com/forum/Yahoo-Mojito

Licensing and Contributions

This software is free to use under the Yahoo! Inc. BSD license. See LICENSE.txt. To contribute to the Mojito project, please see Contributing.

The Mojito project is a meritocratic, consensus-based community project, which allows anyone to contribute and gain additional responsibilities.