mfp-gitignore icon indicating copy to clipboard operation
mfp-gitignore copied to clipboard

Review .gitignores in this project, see if they are still suitable for the new "Cordova" style in 7.1

Open andrewferrier opened this issue 10 years ago • 4 comments

@nickcmaynard-ibm - opinions?

andrewferrier avatar Oct 27 '15 09:10 andrewferrier

AFAICT they're still suitable, though we'll see only the server-side resource rules taking effect. The Cordova-style hybrid projects don't live in the same hierarchy - they're siblings to the root we usually deal with.

IBM haven't issued guidance for source control of these types of project. Perhaps we should start by asking the question on Stack Overflow.

nickcmaynard avatar Oct 27 '15 09:10 nickcmaynard

The directory structure is defined by Apache Cordova, best practice is to check everything in except the contents of 2 folders "platforms" "plugins". If you don't want to checkin wlapp files they can be regrnerated with mfp push command so ignoring the folder "mobilefirst" is also recommended, they can be empty directories in source control.

csantanapr avatar Oct 29 '15 21:10 csantanapr

OK, I'll take a look at this when I have some time. I would suggest that these might be useful starting points:

  • https://github.com/crilleengvall/gitignore/blob/master/Phonegap.gitignore
  • http://stackoverflow.com/a/29972835/27641
  • https://github.com/phonegap/phonegap-app-developer/blob/master/.gitignore

andrewferrier avatar Feb 10 '16 12:02 andrewferrier

A word of caution here - I've seen conflicting "recommendations" for handling Cordova projects and Git. I would advise detailed testing if there is no official guidance.

nickcmaynard avatar Feb 10 '16 12:02 nickcmaynard