Giter VIP home page Giter VIP logo

mfp-gitignore's Introduction

mfp-gitignore

This is an unofficial repository providing an initial/template .gitignore file for an IBM MobileFirst Platform Foundation Project. Note: these templates are primarily intended for use with hybrid projects, and it is likely they may not be directly suitable for native-first projects. There is no official IBM support for these artifacts. We are attempting to follow the same principles as GitHub's own gitignore project. We will gladly accept any pull request with corrections or clarifications (especially explanatory comments).

Usage

  1. Include the contents of the appropriate <VERSION>.gitignore file in your .gitignore file, located at the root of your MFP project (Note: not your Eclipse workspace).
  2. MFP requires some directories to be present, but Git does not check in empty directories. .gitkeep files ensure these directories are present when developers clone the Git repository. .gitkeep files should be created in the following directories:
  3. server/java
  4. server/lib
  5. apps
  6. adapters/ADAPTER_NAME/lib (for all Java adapters)

Older Name - Worklight

Prior to version 6.3, IBM MobileFirst Platform Foundation was known as IBM Worklight Foundation, so there are equivalent .gitignore files here for versions 6.1 and 6.2. This repository was formerly known as worklight-gitignore.

mfp-gitignore's People

Contributors

andrewferrier avatar hmedney avatar jeffcai avatar nathanhazout avatar nickcmaynard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mfp-gitignore's Issues

Could do with better commenting

Given this is likely to be adjusted, we should indicate:

  • Where the rules came from (this repo).
  • What the reasoning is (ObjC, WL recommendations).
  • Where the rules start and end.

backup.zip

Studio sometimes creates a file names MyProject_timestamp.backup.zip

Maybe we could add a rule to ignore *.backup.zip ?

Failing Java adapters in 7.0

My project worked fine, I added the gitgnore, committed and uploaded.
Then I downloaded it again and imported it. When deploying the Java adapter:

Adapter deployment failed: JAXRS Application class: 'com.sample.QRApplication' was not found (or cannot be loaded). 
Make sure that the class name in the adapter's xml file is correct and that the class actually exist in the adapter's bin folder or in one of the jars of the adapter's lib folder [project BinaryResponse]

Should ignore patterns include a leading slash?

The majority of our ignore patterns (certainly, those beginning with "app") should probably begin with a / to prevent recursive matching.

This probably isn't a real issue, but would be more technically "correct".

OTOH, the "bin" match should probably remain recursive. Perhaps some documentation comments to explain why certain rules are/aren't recursive?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.