[英]Should we use yeoman generator-ionic?
It has been first time I use generator-ionic for building an ionic project (before just ionic start myApp blank
) and it has been disappointing. 这是我第一次使用generator-ionic来构建离子项目(在
ionic start myApp blank
),这令人失望。
I ran: 我跑了:
mkdir ionic-generator-test && cd $_
yo ionic
npm install && bower install
grunt serve
After few minutes browser opens and on the console I found: 几分钟后,浏览器打开,在控制台上,我发现:
Error: $injector:nomod Module Unavailable Module 'starter' is not available!
错误:$ injector:nomod模块不可用模块'starter'不可用! You either misspelled the module name or forgot to load it.
您可能拼错了模块名称,或者忘记了加载它。 If registering a module ensure that you specify the dependencies as the second argument.
如果注册模块,请确保将依赖项指定为第二个参数。
Problem is that app.js file is not loaded. 问题是未加载app.js文件。 Path in HTML file is wrong:
HTML文件中的路径错误:
<script src="scripts/app.js"></script>
Should be 应该
<script src="js/app.js"></script>
Such simple and big error and last update of the generator was on Dec 29, 2015 (commit c5eb207). 这种简单而又大的错误以及生成器的最新更新是在2015年12月29日(提交c5eb207)。
Do you think ionic-generator is reliable? 您认为离子发生器可靠吗?
ionic-generator is a well known and used Yeoman Template. 离子发生器是众所周知且使用过的Yeoman模板。 Another popular template is generator-m-ionic , which uses Gulp and has regular updates.
另一个流行的模板是generator-m-ionic ,它使用Gulp并定期更新。
On the git hub page , it looks like generator-ionic is not receiving many upddates. 在git hub页面上 ,似乎generator-ionic没有收到很多更新。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.