@acpaas-ui/schematics 中文文档教程

发布于 4年前 浏览 9 项目主页 更新于 3年前

ACPaaS UI Schematics

ACPaaS UI 项目的自定义示意图。

Table of Contents

  1. Installation
  2. Usage
  3. Documentation
  4. Contribution
  5. License

Installation

在您的 angular-cli 应用程序中安装原理图:

npm install @acpaas-ui/schematics --save-dev

yarn add @acpaas-ui/schematics --save-dev

Usage

自定义 packageexample 原理图将可与 cli 一起使用:

ng g @acpaas-ui/schematics:package --name=<name here>

ng g @acpaas-ui/schematics:example --name=<name here>

Development

  1. Install all dependencies
npm install

yarn
  1. Build with
npm run build

启用监视更改

npm run build -- --watch
  1. To install the schematic in your app, link this repo with
npm link

ng generate @acpaas-ui/schematics:<schematic> --name=<name>

在您的应用程序中运行。

  1. To test locally, install @angular-devkit/schematics globally and use the schematics command line tool. That tool acts the same as the generate command of the Angular CLI, but also has a debug mode.

使用 npm run test 检查文档

schematics --help
  1. Unit Testing

将运行单元测试,使用 Jasmine 作为运行器和测试框架。

Documentation

请参阅 角度示意图这篇博文了解更多信息。

Contribution

请确保在提出拉取请求之前阅读贡献指南

感谢所有已经为 ACPaaS UI 做出贡献的人!

License

MIT

版权所有 (c) 2016 年至今,Digipolis

ACPaaS UI Schematics

Custom schematics for the ACPaaS UI project.

Table of Contents

  1. Installation
  2. Usage
  3. Documentation
  4. Contribution
  5. License

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

  1. Install all dependencies
npm install

or

yarn
  1. Build with
npm run build

To enable watching for changes run

npm run build -- --watch
  1. 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.

  1. To test locally, install @angular-devkit/schematics globally and use the schematics command line tool. That tool acts the same as the generate command of the Angular CLI, but also has a debug mode.

Check the documentation with

schematics --help
  1. 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

MIT

Copyright (c) 2016-present, Digipolis

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文