Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在现有的 angular2 项目中使用 angular-cli 并使用它来生成组件等。实现这一点需要什么配置?我认为包括angular-cli.json就足够了。有小费吗?
angular-cli.json
可能,是的。建议,没有。
有可能,您需要ng init在项目的根目录中运行。如果不这样做,CLI 将无法确定项目的根目录。但是需要注意/后果是您可以使用它获得所有 CLI,包括构建过程和单元测试。因此,如果您不打算使用其他出色的功能,我认为使用 CLI 是没有意义的。
ng init
替代品: