Package Exports
- ry-cli
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ry-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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
- Usage
- Generating a New Project
- Generating Components, Directives, Pipes and Services
- Updating Angular CLI
- Development Hints for working on Angular CLI
- Documentation
- License
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