xulihang Well-Known Member Licensed User Longtime User May 21, 2021 #1 Hi there, I have the habit to upload projects onto GitHub. I think open-sourcing is good for expanding the impact of B4X. Here are some thoughts and problems I meet which I would like to share with you. 1. I use .gitignore to avoiding adding unnecessary files. Code: *.meta Objects AutoBackups But there are still meta data in the b4a/b4j/b4i files like file order being tracked. 2. Git will ignore empty folders. So if I created a B4Xpages project and manage it with Git, the Shared Files folder may be omitted if it is empty. Then the CustomBuildAction will fail if other users git clone the project. 3. GitHub does not recognize B4X. It detects the code file as Visual Basic source code files.
Hi there, I have the habit to upload projects onto GitHub. I think open-sourcing is good for expanding the impact of B4X. Here are some thoughts and problems I meet which I would like to share with you. 1. I use .gitignore to avoiding adding unnecessary files. Code: *.meta Objects AutoBackups But there are still meta data in the b4a/b4j/b4i files like file order being tracked. 2. Git will ignore empty folders. So if I created a B4Xpages project and manage it with Git, the Shared Files folder may be omitted if it is empty. Then the CustomBuildAction will fail if other users git clone the project. 3. GitHub does not recognize B4X. It detects the code file as Visual Basic source code files.
aeric Expert Licensed User Longtime User May 21, 2021 #2 We can add a dummy text file into the empty folder right?
LWGShane Well-Known Member Licensed User Longtime User May 21, 2021 #3 xulihang said: 1. I use .gitignore to avoiding adding unnecessary files. Click to expand... I use the following gitignore and it works perfectly with B4X. Code: #Directories: !**/Objects/res **/Objects **/AutoBackups #Files: *.ipa *.dex *.jar *.apk Notes: The "!" means that I tell git to not ignore the "/Objects/res" folder in B4A projects.) The double asterisk ("**") tells git to look for those items anywhere in the file structure. (So I can put the .gitignore file in the root folder, including B4XPages projects.) The pound/hashtag symbol ("#") are comments.
xulihang said: 1. I use .gitignore to avoiding adding unnecessary files. Click to expand... I use the following gitignore and it works perfectly with B4X. Code: #Directories: !**/Objects/res **/Objects **/AutoBackups #Files: *.ipa *.dex *.jar *.apk Notes: The "!" means that I tell git to not ignore the "/Objects/res" folder in B4A projects.) The double asterisk ("**") tells git to look for those items anywhere in the file structure. (So I can put the .gitignore file in the root folder, including B4XPages projects.) The pound/hashtag symbol ("#") are comments.
AnandGupta Expert Licensed User Longtime User May 21, 2021 #4 @Erel also maintains Pleroma / Mastodon Client at github, GitHub - AnywhereSoftware/B4X-Pleroma: Cross platform Pleroma / Mastodon client Cross platform Pleroma / Mastodon client. Contribute to AnywhereSoftware/B4X-Pleroma development by creating an account on GitHub. github.com And it show Freebasic, VBA. He may give more advise on it. Regards, Anand
@Erel also maintains Pleroma / Mastodon Client at github, GitHub - AnywhereSoftware/B4X-Pleroma: Cross platform Pleroma / Mastodon client Cross platform Pleroma / Mastodon client. Contribute to AnywhereSoftware/B4X-Pleroma development by creating an account on GitHub. github.com And it show Freebasic, VBA. He may give more advise on it. Regards, Anand
xulihang Well-Known Member Licensed User Longtime User May 21, 2021 #5 aeric said: We can add a dummy text file into the empty folder right? Click to expand... Right. I use .gitkeep to track empty folders. Like here: https://github.com/xulihang/BarcodeReader-B4X/tree/main/LiveScanner/Shared Files
aeric said: We can add a dummy text file into the empty folder right? Click to expand... Right. I use .gitkeep to track empty folders. Like here: https://github.com/xulihang/BarcodeReader-B4X/tree/main/LiveScanner/Shared Files
xulihang Well-Known Member Licensed User Longtime User May 21, 2021 #6 AnandGupta said: He may give more advise on it. Click to expand... Erel has made a pull request about this here: https://github.com/github/linguist/pull/5310 It is pending popularity.
AnandGupta said: He may give more advise on it. Click to expand... Erel has made a pull request about this here: https://github.com/github/linguist/pull/5310 It is pending popularity.
aeric Expert Licensed User Longtime User May 21, 2021 #7 AnandGupta said: And it show Freebasic, VBA. Click to expand... I think because we have .bas file extension.
AnandGupta said: And it show Freebasic, VBA. Click to expand... I think because we have .bas file extension.