gruntjs - Working Directory is not a Cordova-based project from Grunt -
I have a web app that I create through Grunt Now, I use PhoneGrap / Cordova I want to bundle that app as part of build processing. In an effort to do so, I have included the Grint-CordoWeekly module and have a goal called 'Deanati'. Deploying such setup:
grunt.registerTask ( 'posted' [ 'construction', 'cordovacli: add_platforms',' cordovacli: add_plugins', 'cordovacli: prepare_ios',' cordovacli : Prepare_android 'Cordovekli: Tayar_vindo' Cordovekli: Bild_aios' Cordowkali: Bild_ Androdaid 'Cordovekli: Bild_vindo']);
I have confirmed working to load the content in my browser. My CordWevelly task is configured as follows:
Module Exchange = function (config) {return: {path: '/ distribute'}, Cordowa: {options: {command: [ 'Platform: [ "iOS", "Android", "Dblupi 8'] Keywords: [ 'device ',' 'Ready', 'Platform', 'Plugin', 'Build'], Platform: ['IOS', 'Android', 'iOS', 'Android', 'wp8' [Options: '' battery status', 'camera', 'contact', 'splashscreen']}}, build_ios: {Options: {option: 'plugin', action: 'add', plugins: {Command: 'build', platforms: ['iOS']}}, build_android: {options: {command: 'bui Ld 'platforms: [' android ']}}, Build_windows: {options: {command:' Construction 'platforms: [' wp8 ']}}, prepare_ios: {options: {command:' ready 'platforms: [ 'Ios']}}, prepare_android: {options: {command: 'prepare', platforms: ['android']}}}; };
When I deploy, everything works up to Cordova accessories.
running at that time to use the "cordovacli: add_platforms" (cordovacli) Work Cordoba CLI version (3k5k0-0k2k6) set the current working directory (CWD), I deliver to get the running node C: \ projects \ MyApp \ node_modules \ Guraghurana- cordovacli \ node_modules \ Cordoba \ bin \ Cordoba Add platform running ios: node C: \ projects \ MyApp \ node_modules \ Guraghurana- cordovacli \ node_modules \ Cordoba \ Bin \ Add Cordoba Platform Android Run: Node C: \ Projects \ MyApp \ node_modules \ Grunge Ana- cordovacli \ node_modules add \ Cordoba \ bin \ Cordoba forum wp8 current working directory is not a Cordova-based project. & Gt; & Gt; Error error- & gt; Error with parallel works
What's wrong with that? What am i doing wrong
It seems that you are not making the initial
the Cordeweckly task Does not exist and therefore can not add platforms.
Cordoba knows that you have not created an app because config.xml
is not present in
Distribute the path.
Also make sure that you do not have a config.xml
, otherwise for any reason in the same directory as grunfile.js
The platform is added there and not in your specified / distributed
path. I was trapped in the detection for a while.
Comments
Post a Comment