1.2.9 • Published 6 years ago

ng4-tool v1.2.9

Weekly downloads
4
License
ISC
Repository
github
Last release
6 years ago

ng4-tool

  • 支持初始化Angular5单页面项目(暂时必须配置CDN以及git、gitlab部署)。
  • 支持快速创建component、module、directive、ngrx、pipe等文件。
  • 支持ngrx4。
  • 支持单元测试。
  • 暂时只支持AOT模式。
  • 推荐使用 mobk 代替 ngrx
  • -t type 增加 spec-cspec-pspec-dspec-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 支持c component、m module、d directive、s mobk、n ngrx、a action、p pipe等文件、spec-c component-spec、spec-p pipe-spec、spec-d directive-spec,spec-s service-spec,默认为component类型。
  • -n 文件名及组件名,默认为template及Template。ng4 -n test 文件名为 test.[-t].ts 组件名为 Test[-t]
  • -p 路径暂时只支持相对路径
1.2.9

6 years ago

1.2.8

6 years ago

1.2.7

6 years ago

1.2.6

6 years ago

1.2.5

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.1.0

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago