@acpaas-ui/schematics 中文文档教程
ACPaaS UI Schematics
ACPaaS UI 项目的自定义示意图。
Table of Contents
Installation
在您的 angular-cli 应用程序中安装原理图:
npm install @acpaas-ui/schematics --save-dev
或
yarn add @acpaas-ui/schematics --save-dev
Usage
自定义 package
和 example
原理图将可与 cli 一起使用:
ng g @acpaas-ui/schematics:package --name=<name here>
ng g @acpaas-ui/schematics:example --name=<name here>
Development
- Install all dependencies
npm install
或
yarn
- Build with
npm run build
启用监视更改
npm run build -- --watch
- To install the schematic in your app, link this repo with
npm link
并
ng generate @acpaas-ui/schematics:<schematic> --name=<name>
在您的应用程序中运行。
- To test locally, install
@angular-devkit/schematics
globally and use theschematics
command line tool. That tool acts the same as thegenerate
command of the Angular CLI, but also has a debug mode.
使用 npm run test
检查文档
schematics --help
- Unit Testing
将运行单元测试,使用 Jasmine 作为运行器和测试框架。
Documentation
Contribution
请确保在提出拉取请求之前阅读贡献指南。
感谢所有已经为 ACPaaS UI 做出贡献的人!
License
版权所有 (c) 2016 年至今,Digipolis
ACPaaS UI Schematics
Custom schematics for the ACPaaS UI project.
Table of Contents
Installation
Install the schematics in your angular-cli app:
npm install @acpaas-ui/schematics --save-dev
or
yarn add @acpaas-ui/schematics --save-dev
Usage
The custom package
and example
schematics will be available for use with the cli:
ng g @acpaas-ui/schematics:package --name=<name here>
ng g @acpaas-ui/schematics:example --name=<name here>
Development
- Install all dependencies
npm install
or
yarn
- Build with
npm run build
To enable watching for changes run
npm run build -- --watch
- To install the schematic in your app, link this repo with
npm link
and run
ng generate @acpaas-ui/schematics:<schematic> --name=<name>
in your app.
- To test locally, install
@angular-devkit/schematics
globally and use theschematics
command line tool. That tool acts the same as thegenerate
command of the Angular CLI, but also has a debug mode.
Check the documentation with
schematics --help
- Unit Testing
npm run test
will run the unit tests, using Jasmine as a runner and test framework.
Documentation
See the angular schematics and this blogpost for more info.
Contribution
Please make sure to read the Contributing Guide before making a pull request.
Thank you to all the people who already contributed to ACPaaS UI!
License
Copyright (c) 2016-present, Digipolis