@prodo/cli
This command-line interface (CLI) lets you import components created with [Prodo](https://prodo.dev) into your React project.
Last updated 8 months ago by andrejak .
MIT · Original npm · Tarball · package.json
$ cnpm install @prodo/cli 
SYNC missed versions from official npm registry.

@prodo/cli

This command-line interface (CLI) lets you import components created with Prodo into your React project.

Installation

Install the CLI with npm or yarn:

npm install -g @prodo/cli

You can then run prodo. Try:

prodo help

Initialization

First, initialize Prodo in your project directory (where your package.json file is).

prodo init

This command

  • Creates an empty prodo.json file that lists the components your project uses.
  • Adds a postinstall script to your package.json file that will install all of your Prodo components after running npm install.
  • Adds @prodo/react as a dependency. This package contains the necessary React hooks and HOCs to make your components state and actions work.
  • Adds @prodo/cli as a dev dependency. This means the rest of your team can use the Prodo components you have added without needing to poke them to install the CLI.

Adding and Using Components

To add a Prodo component run (replacing MyComponent with the name of your component and username with your username):

prodo add username.ComponentName

The components can be used in your React project with:

import ComponentName from "@prodo/username.ComponentName";

and used with

<ComponentName />

The behavior you defined for your component will work out of the box!

Update a component to the latest version by running prodo add again.

Current Tags

  • 1.1.10                                ...           latest (8 months ago)

16 Versions

  • 1.1.10                                ...           8 months ago
  • 1.1.8                                ...           a year ago
  • 1.1.7                                ...           a year ago
  • 1.1.6                                ...           a year ago
  • 1.1.5                                ...           a year ago
  • 1.1.4                                ...           a year ago
  • 1.1.3                                ...           a year ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.6                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (21)
Dev Dependencies (19)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |