ng4-tool
v1.2.9
Published
- 支持初始化Angular5单页面项目(暂时必须配置CDN以及git、gitlab部署)。 - 支持快速创建component、module、directive、ngrx、pipe等文件。 - 支持ngrx4。 - 支持单元测试。 - 暂时只支持AOT模式。 - 推荐使用 `mobk` 代替 `ngrx`。 - *`-t type` 增加 `spec-c`、 `spec-p`、 `spec-d`、 `spec-s` 四种类型快速创建单元测试模板 *。 - *新增对官方工具 [`ng-cli` ](htt
Readme
ng4-tool
- 支持初始化Angular5单页面项目(暂时必须配置CDN以及git、gitlab部署)。
- 支持快速创建component、module、directive、ngrx、pipe等文件。
- 支持ngrx4。
- 支持单元测试。
- 暂时只支持AOT模式。
- 推荐使用
mobk代替ngrx。 - *
-t type增加spec-c、spec-p、spec-d、spec-s四种类型快速创建单元测试模板 *。 - 新增对官方工具
ng-cli命令的支持。 - *
-t type增加s创建mobk store模板(默认采用严格模式,内置异步action类型) *。
安装命令 npm install ng4-tool -g
~~ng4 init 初始化基于Angular的整个项目,暂不支持目录设置,默认初始到命令行 pwd 当前目录。~~
ng4 init 初始化基于Angular5的整个项目,支持 -p 命令进行目录设置 。
ng4 mpa 初始化基于Angular5的多页面项目,支持 -p 命令进行目录设置 。
ng4 create 快速创建component、module、directive、ngrx、pipe等文件 ,使用 ng4 -h 查看参数配置。
ng4 check [componentname] 快速渲染组件,暂时不支持参数设置(t、n、p) ,使用 ng4 -h 查看参数配置。
-t支持ccomponent、mmodule、ddirective、smobk、nngrx、aaction、ppipe等文件、spec-ccomponent-spec、spec-ppipe-spec、spec-ddirective-spec,spec-sservice-spec,默认为component类型。-n文件名及组件名,默认为template及Template。ng4 -n test文件名为test.[-t].ts组件名为Test[-t]-p路径暂时只支持相对路径
