如何将现有项目转换为angular-cli? [英] How can I convert an existing project to angular-cli?

查看:92
本文介绍了如何将现有项目转换为angular-cli?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚尝试了 ng2-admin ,它看起来很棒;所有功能都非常好.如何将该项目转换为angular-cli?

我尝试使用ng init,但是它覆盖了app文件夹中的现有代码.如何将这个项目转换为angular-cli而没有任何影响?

I tried with ng init, but it is overwriting the existing code in the app folder. How can I convert this project to angular-cli without any impact?

推荐答案

只需在angular-cli中创建项目,然后将所有代码放入app文件夹src/app文件夹中即可.如果您的项目有,请导入外部依赖项.

just create project in angular-cli and than put your all code in app folder src/app folder. import external dependencies if your project have.

这篇关于如何将现有项目转换为angular-cli?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆