1.0.4 • Published 4 years ago

ry-cli v1.0.4

Weekly downloads
6
License
MIT
Repository
-
Last release
4 years ago

RuiYun CLI

Note

Before submitting new issues, have a look at issues marked with the type: faq label.

Prerequisites

Both the CLI and generated project have dependencies that require Node 8.9 or higher, together with NPM 5.5.1 or higher.

Table of Contents

Installation

npm install -g ry-cli

Usage

ry help

Generating an RuiYun project

ry new PROJECT-NAME
cd PROJECT-NAME

Generating Components, Directives, Pipes and Services

You can use the ng generate (or just ng g) command to generate Angular components:

ng generate component my-new-component
ng g component my-new-component # using the alias

# components support relative path generation
# if in the directory src/app/feature/ and you run
ng g component new-cmp
# your component will be generated in src/app/feature/new-cmp
# but if you were to run
ng g component ./newer-cmp
# your component will be generated in src/app/newer-cmp
# if in the directory src/app you can also run
ng g component feature/new-cmp
# and your component will be generated in src/app/feature/new-cmp

Updating RuiYun CLI

npm uninstall -g ry-cli
npm uninstall --save-dev ry-cli

To update RuiYun CLI to a new version, you must update both the global package and your project's local package.

Global package:

npm uninstall -g ry-cli
npm cache verify
# if npm version is < 5 then use `npm cache clean`
npm install -g ry-cli@latest

Local project package:

rm -rf node_modules dist # use rmdir /S/Q node_modules dist in Windows Command Prompt; use rm -r -fo node_modules,dist in Windows PowerShell
npm install --save-dev ry-cli@latest
npm install

Documentation

The documentation for the RuiYun CLI is located in this repo's wiki.

License

MIT

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago