gruntjs - creating app using grunt-titanium -



gruntjs - creating app using grunt-titanium -

this command created app using titanium cli

$ titanium create --name app_name --id com.appname.app --type app --platforms android --url app.com --workspace-dir . --project-dir .

i'm trying grunt-titanium. 1. package.json

{ "name": "my-project", "version": "0.0.1", "devdependencies": { "grunt-titanium": "~0.3.1", "grunt-alloy": "~0.1.0", "grunt-shell": "~1.1.2", "grunt": "~0.4.5" } } my gruntfile.js 'use strict'; var test_app = 'appwithusegrunt', id = 'com.grunt.myapp', url = 'app.com', target_platform = 'android'; module.exports = function (grunt) { grunt.initconfig({ pkg: grunt.file.readjson('package.json'), titanium: { all: { options: { command: 'create', name: test_app, workspacedir: '.', projectdir:'.', platforms: target_platform, id:id, type:'app', url:url } } } }); grunt.loadnpmtasks('grunt-titanium'); //grunt.loadnpmtasks('grunt-alloy'); grunt.registertask('default',['titanium']); }; ...and when run grunt see next error name@user ~/documents/demoapp/testproject $ grunt running "titanium:all" (titanium) task titanium create --name appwithusegrunt --id com.grunt.myapp --workspace-dir . --platforms android --quiet --no-banner --no-progress-bars --no-prompt --project-dir . --type app --url app.com fatal error: spawn enoent

why did receive error? how can create alloy mobile project using grunt-titanium , grunt-alloy?

gruntjs titanium titanium-alloy

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -