开发者

Adding my flex project to github

开发者 https://www.devze.com 2023-04-09 19:58 出处:网络
What to commit and what to ignore when adding a flex project to github? Keep in mind that I want to share it with others and开发者_如何学运维 accept pull requests.I don\'t use flex, but here are some

What to commit and what to ignore when adding a flex project to github? Keep in mind that I want to share it with others and开发者_如何学运维 accept pull requests.


I don't use flex, but here are some general rules for all source control:

Commit:

  • Human written code
  • Configuration files
  • Referenced 3rd party libraries (that are not typically part of the standard environment)
  • In some cases tools needed to build and run that are not standard (save people hunting and downloading if you can)

Ignore:

  • Generated code, that can be easily regenerated using a scripts, tools
    • Generated CSS files if you write SASS/SCSS/LESS instead
    • Generated JS files if you write Coffeescript instead
  • Build artifacts, build folders,
  • Temporary files (e.g., some editors creating working files)

As an addendum for Git, I prefer to keep some non-code artifacts in submodules to avoid polluting the code repository. This can include:

  • Large assets, images and videos in some cases
  • Tools and executables (very handy if you reuse these tools for multiple projects)

This is not an exhaustive list and your environment probably dictates some deviation or adjustments here. The first rules in

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号