ng-environment-setup

1.0.23 • Public • Published

ng-environment-setup

npm npm Build Status

简介

ng-environment-setup 用于Angular项目自动化创建,依赖于:

环境

Angular-Cli (version >= 8.x)
Node (version >= 10.x)

安装

npm install ng-environment-setup -g

运行

nes

生成路由

  • 在项目目录创建.router文件,内容如:
module.exports = [
  {
    id: 1,
    title: '父级路由',
    name: 'moduleName',
    children: [
      {
        id: 101,
        title: '子级路由',
        link: '/moduleName/routeName'
      }
    ]
  }
]
  • 运行命令
nes router

/ng-environment-setup/

    Package Sidebar

    Install

    npm i ng-environment-setup

    Weekly Downloads

    0

    Version

    1.0.23

    License

    ISC

    Unpacked Size

    241 kB

    Total Files

    74

    Last publish

    Collaborators

    • phinney