Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use cordova version #10

Closed
raghavendradabbir opened this issue May 25, 2016 · 8 comments
Closed

Unable to use cordova version #10

raghavendradabbir opened this issue May 25, 2016 · 8 comments

Comments

@raghavendradabbir
Copy link

Hi,

I am using the below in gulp
gulp.task('app.versionsetting', function () {
return gulp.src('/')
.pipe(create())
.pipe(version('2.3.1'));
});

then in my cmd prompt, i am typing gulp app.versionsetting

I get the below and then no updates to the config file. Please help

D:\Work>gulp app.versionsetting
[00:22:49] Using gulpfile D:\Work\gulpfile.js
[00:22:49] Starting 'app.versionsetting'...

@SamVerschueren
Copy link
Owner

Can you provide me with the following information?

Where are you looking for your config file? Just to make sure you are looking at the right spot.

@raghavendradabbir
Copy link
Author

Ok, maybe i am not looking at the right place - I did think abt this but wasnt sure - please let me know where I should find the config.xml - my concern is that the gulp task is starting but not ending. Here is what I am doing. My app workspace is
D:\Work
In this folder, I have a config.xml file and also my gulp.js.

@SamVerschueren
Copy link
Owner

SamVerschueren commented May 25, 2016

The config.xml is created automatically together with the entire project. In your case, take a look in D:\Work\.cordova.

@raghavendradabbir
Copy link
Author

I see a .cordova folder in the root. My project already has a config.xml and i am expecting the version to be updated in this file.
test

@raghavendradabbir
Copy link
Author

The .cordova folder is empty and contains no files

@SamVerschueren
Copy link
Owner

The gulp-cordova project is not meant for this use case. It is meant for creating a cordova build on different machines (throughout) your team without adding the config stuff to your repo or require everyone to have the cordova tools installed.

If you want this, you can either use cordova-config directly in your gulp task or create a custom plugin.

@SamVerschueren
Copy link
Owner

That indeed might be a bug.

@raghavendradabbir
Copy link
Author

Thank u. I think cordova-config might help me.

Thanks for ur support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants