【发布时间】:2012-12-28 05:56:53
【问题描述】:
我正在开发一个 Web 应用程序,其中包括 GruntJS 构建任务。我在 Xcode IDE 中使用 Phonegap/Cordova 部署它。
我想将 grunt 构建过程集成到我的 Xcode 项目中以简化项目的运行。理想情况下,Xcode 应该预先运行我使用 Grunt CLI 手动调用的所有进程。
我的 Gruntfile.js 位于 Xcode 项目的根目录中。我在 node_modules 中有一个本地 grunt 安装(0.4.0rc4),并且全局安装了 grunt-cli。
project
- multiple project dirs ...
- node_modules
- www-src
- www
project.xcodeproj
Gruntfile.js
我尝试使用一个像“grunt”这样简单的命令向我的 Xcode 项目添加自定义运行脚本 - 构建阶段,该命令在构建过程中返回“grunt: command not found”。显然需要更多的努力来引用 grunt 和/或正确的目标目录。
【问题讨论】:
-
也许它与我在 Webstorm 中遇到的这个问题有关。检查第一章。 coderwall.com/p/mrvnjg
标签: xcode cordova build gruntjs