缺少Ionic2 Build文件夹结构

时间:2016-06-16 09:54:42

标签: ionic-framework angular ionic2

我开始学习main/news/nba-orlando,我使用FB.init({ appId : '{api_id}', redirect_uri : document.URL, cookie : true, xfbml : true, version : 'v2.5' }); 创建了一个新项目,如果我Ionic2,一切正常。

离子2项目文件夹中缺少构建文件夹。

每当我尝试下载任何现有的ionic start myproject --v2模板时,也会丢失构建文件夹。

ionic serve

enter image description here

3 个答案:

答案 0 :(得分:1)

您的ionic serve版本位于www下。原生构建(来自ionic build)位于platform

之下

答案 1 :(得分:0)

有点晚了,但我遇到了同样的问题,并且能够通过安装Gulp来修复它:

<div id="main"> <h1 class="page-title">Class: Person</h1> <section> <header> <h2>Person</h2> </header> <article> <div class="container-overview"> <hr> <h4 class="name" id="Person"><span class="type-signature"></span>new Person<span class="signature">()</span><span class="type-signature"></span></h4> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="person.js.html">person.js</a>, <a href="person.js.html#line2">line 2</a> </li></ul></dd> </dl> </div> <h3 class="subsection-title">Methods</h3> <hr> <h4 class="name" id="greet"><span class="type-signature"></span>greet<span class="signature">()</span><span class="type-signature"></span></h4> <div class="description"> Greet someone </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="person.js.html">person.js</a>, <a href="person.js.html#line17">line 17</a> </li></ul></dd> </dl> <hr> <h4 class="name" id="init"><span class="type-signature"></span>init<span class="signature">()</span><span class="type-signature"> → {<a href="Person.html">Person</a>}</span></h4> <div class="description"> This person's name return {Person} </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="person.js.html">person.js</a>, <a href="person.js.html#line9">line 9</a> </li></ul></dd> </dl> <hr> <h4 class="name" id="logGreeting"><span class="type-signature"></span>logGreeting<span class="signature">()</span><span class="type-signature"></span></h4> <div class="description"> Log a greeting to the browser console </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="person.js.html">person.js</a>, <a href="person.js.html#line23">line 23</a> </li></ul></dd> </dl> <hr> <h4 class="name" id="onRename"><span class="type-signature"></span>onRename<span class="signature">()</span><span class="type-signature"></span></h4> <div class="description"> Callback triggered on rename </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="person.js.html">person.js</a>, <a href="person.js.html#line38">line 38</a> </li></ul></dd> </dl> </article> </section> </div>

然后我做了npm install -g gulp

这解决了我的问题,并按原样生成了gulp build文件夹。

答案 2 :(得分:-1)

首先,您需要通过从Ionic CLI控制台执行来添加对您正在使用的平台的支持:

ionic platform add android

ionic platform add ios

然后你应该通过执行:

来构建你的项目
ionic build android

ionic build ios