kookeeper 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +7 -0
  2. data/.github/ISSUE_TEMPLATE.md +20 -0
  3. data/.gitignore +50 -0
  4. data/.travis.yml +19 -0
  5. data/CODE_OF_CONDUCT.md +46 -0
  6. data/CONTRIBUTING.md +70 -0
  7. data/Gemfile +10 -0
  8. data/Gemfile.lock +125 -0
  9. data/LICENSE +21 -0
  10. data/README.md +113 -0
  11. data/Rakefile +2 -0
  12. data/big_keeper.gemspec +49 -0
  13. data/bin/big +14 -0
  14. data/bin/setup +8 -0
  15. data/docs/en-US/FEATURE.md +0 -0
  16. data/docs/en-US/README.md +54 -0
  17. data/docs/zh-CN/BIGKEEPER_FILE.md +84 -0
  18. data/docs/zh-CN/FEATURE&HOTFIX.md +88 -0
  19. data/docs/zh-CN/IMAGE.md +0 -0
  20. data/docs/zh-CN/PODFILE.md +43 -0
  21. data/docs/zh-CN/README.md +113 -0
  22. data/docs/zh-CN/RECOMMEND.md +22 -0
  23. data/docs/zh-CN/RELEASE.md +60 -0
  24. data/docs/zh-CN/SPEC.md +39 -0
  25. data/lib/big_keeper/command/client.rb +50 -0
  26. data/lib/big_keeper/command/feature&hotfix/delete.rb +40 -0
  27. data/lib/big_keeper/command/feature&hotfix/finish.rb +54 -0
  28. data/lib/big_keeper/command/feature&hotfix/list.rb +63 -0
  29. data/lib/big_keeper/command/feature&hotfix/publish.rb +56 -0
  30. data/lib/big_keeper/command/feature&hotfix/pull.rb +26 -0
  31. data/lib/big_keeper/command/feature&hotfix/push.rb +27 -0
  32. data/lib/big_keeper/command/feature&hotfix/rebase.rb +32 -0
  33. data/lib/big_keeper/command/feature&hotfix/start.rb +74 -0
  34. data/lib/big_keeper/command/feature&hotfix/switch.rb +46 -0
  35. data/lib/big_keeper/command/feature&hotfix/update.rb +66 -0
  36. data/lib/big_keeper/command/feature&hotfix.rb +167 -0
  37. data/lib/big_keeper/command/image/image.rb +0 -0
  38. data/lib/big_keeper/command/image.rb +28 -0
  39. data/lib/big_keeper/command/init.rb +36 -0
  40. data/lib/big_keeper/command/pod/podfile.rb +72 -0
  41. data/lib/big_keeper/command/pod.rb +55 -0
  42. data/lib/big_keeper/command/release/finish.rb +36 -0
  43. data/lib/big_keeper/command/release/home.rb +92 -0
  44. data/lib/big_keeper/command/release/module.rb +65 -0
  45. data/lib/big_keeper/command/release/publish.rb +4 -0
  46. data/lib/big_keeper/command/release/start.rb +78 -0
  47. data/lib/big_keeper/command/release.rb +100 -0
  48. data/lib/big_keeper/command/spec/add.rb +9 -0
  49. data/lib/big_keeper/command/spec/analyze.rb +88 -0
  50. data/lib/big_keeper/command/spec/delete.rb +9 -0
  51. data/lib/big_keeper/command/spec/list.rb +19 -0
  52. data/lib/big_keeper/command/spec/search.rb +9 -0
  53. data/lib/big_keeper/command/spec/sync.rb +12 -0
  54. data/lib/big_keeper/command/spec.rb +78 -0
  55. data/lib/big_keeper/dependency/dep_gradle_operator.rb +74 -0
  56. data/lib/big_keeper/dependency/dep_operator.rb +48 -0
  57. data/lib/big_keeper/dependency/dep_pod_operator.rb +130 -0
  58. data/lib/big_keeper/dependency/dep_service.rb +14 -0
  59. data/lib/big_keeper/dependency/dep_type.rb +33 -0
  60. data/lib/big_keeper/model/gitflow_type.rb +43 -0
  61. data/lib/big_keeper/model/library_model.rb +116 -0
  62. data/lib/big_keeper/model/operate_type.rb +30 -0
  63. data/lib/big_keeper/model/podfile_model.rb +33 -0
  64. data/lib/big_keeper/service/git_service.rb +211 -0
  65. data/lib/big_keeper/service/module_service.rb +224 -0
  66. data/lib/big_keeper/service/stash_service.rb +45 -0
  67. data/lib/big_keeper/util/bigkeeper_parser.rb +260 -0
  68. data/lib/big_keeper/util/cache_operator.rb +118 -0
  69. data/lib/big_keeper/util/code_operator.rb +37 -0
  70. data/lib/big_keeper/util/command_line_util.rb +9 -0
  71. data/lib/big_keeper/util/file_operator.rb +33 -0
  72. data/lib/big_keeper/util/git_operator.rb +242 -0
  73. data/lib/big_keeper/util/gitflow_operator.rb +51 -0
  74. data/lib/big_keeper/util/gradle_content_generator.rb +26 -0
  75. data/lib/big_keeper/util/gradle_file_operator.rb +339 -0
  76. data/lib/big_keeper/util/gradle_module_operator.rb +70 -0
  77. data/lib/big_keeper/util/info_plist_operator.rb +46 -0
  78. data/lib/big_keeper/util/leancloud_logger.rb +84 -0
  79. data/lib/big_keeper/util/list_generator.rb +101 -0
  80. data/lib/big_keeper/util/lockfile_parser.rb +143 -0
  81. data/lib/big_keeper/util/logger.rb +47 -0
  82. data/lib/big_keeper/util/pod_operator.rb +70 -0
  83. data/lib/big_keeper/util/podfile_detector.rb +102 -0
  84. data/lib/big_keeper/util/podfile_module.rb +63 -0
  85. data/lib/big_keeper/util/podfile_operator.rb +125 -0
  86. data/lib/big_keeper/util/verify_operator.rb +17 -0
  87. data/lib/big_keeper/util/version_config_operator.rb +29 -0
  88. data/lib/big_keeper/util/xcode_operator.rb +15 -0
  89. data/lib/big_keeper/version.rb +3 -0
  90. data/lib/big_keeper.rb +81 -0
  91. data/resources/banner.png +0 -0
  92. data/resources/command.png +0 -0
  93. data/resources/keynote/big-keeper-readme-analyze.key +0 -0
  94. data/resources/keynote/big-keeper-readme-example.key +0 -0
  95. data/resources/keynote/big-keeper-readme-feature.key +0 -0
  96. data/resources/keynote/big-keeper-readme-release.key +0 -0
  97. data/resources/readme/big-keeper-readme.001.png +0 -0
  98. data/resources/template/Bigkeeper +23 -0
  99. metadata +354 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 8959e533b27bd850a37f72ee0e71776bea3013e7bf3451785bc1b51f0ed9f5c9
4
+ data.tar.gz: 99d39581a70d876f18b621d15c862280b0ac10910f16a49e7f3cf5cc8f901307
5
+ SHA512:
6
+ metadata.gz: 05cf8e4e1e50c9fae937433a5028064e0779e027fbcf4138b911ef5c7e48420bf018570182c9379444baa0c4a339c4d30958e0e73552d7bc4c6fcf1004a0f839
7
+ data.tar.gz: 45050f04652bb88cd644cf075eb41330ae4c691f98998e843f7d1200a9c9375275cfd5129792e982e7d845f6e4528d8fa9b27391d4c914af4a784d3da2871ef5
@@ -0,0 +1,20 @@
1
+ ### Check List
2
+
3
+ Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.
4
+
5
+ - [ ] I have read the [README.md](https://github.com/BigKeeper/bigkeeper/blob/master/README.md), but there is no information I need.
6
+ - [ ] I have searched in [existing issues](https://github.com/BigKeeper/bigkeeper/issues?utf8=%E2%9C%93&q=is%3Aissue), but did find a same one.
7
+
8
+ ### Issue Description
9
+
10
+ #### Description
11
+
12
+ [Tell us about the issue]
13
+
14
+ #### Reproduce
15
+
16
+ [The steps to reproduce this issue. What are the parameters, where did you put your code, etc.]
17
+
18
+ #### Other Comment
19
+
20
+ [Add anything else here]
data/.gitignore ADDED
@@ -0,0 +1,50 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /spec/examples.txt
9
+ /test/tmp/
10
+ /test/version_tmp/
11
+ /tmp/
12
+
13
+ # Used by dotenv library to load environment variables.
14
+ # .env
15
+
16
+ ## Specific to RubyMotion:
17
+ .dat*
18
+ .repl_history
19
+ build/
20
+ *.bridgesupport
21
+ build-iPhoneOS/
22
+ build-iPhoneSimulator/
23
+
24
+ ## Specific to RubyMotion (use of CocoaPods):
25
+ #
26
+ # We recommend against adding the Pods directory to your .gitignore. However
27
+ # you should judge for yourself, the pros and cons are mentioned at:
28
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
29
+ #
30
+ # vendor/Pods/
31
+
32
+ ## Documentation cache and generated files:
33
+ /.yardoc/
34
+ /_yardoc/
35
+ /doc/
36
+ /rdoc/
37
+
38
+ ## Environment normalization:
39
+ /.bundle/
40
+ /vendor/bundle
41
+ /lib/bundler/man/
42
+
43
+ # for a library or gem, you might want to ignore these files since the code is
44
+ # intended to run in multiple environments; otherwise, check them in:
45
+ # Gemfile.lock
46
+ # .ruby-version
47
+ # .ruby-gemset
48
+
49
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
50
+ .rvmrc
data/.travis.yml ADDED
@@ -0,0 +1,19 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - 2.5.0
5
+ - 2.4.3
6
+ - 2.3.6
7
+ - 2.2.9
8
+ - 2.1.10
9
+
10
+ before_install:
11
+ - gem update --remote bundler
12
+ - gem update --system
13
+
14
+ sudo: false
15
+
16
+ bundler_args: --without=guard
17
+
18
+ notifications:
19
+ disabled: true
@@ -0,0 +1,46 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ ## Our Standards
8
+
9
+ Examples of behavior that contributes to creating a positive environment include:
10
+
11
+ * Using welcoming and inclusive language
12
+ * Being respectful of differing viewpoints and experiences
13
+ * Gracefully accepting constructive criticism
14
+ * Focusing on what is best for the community
15
+ * Showing empathy towards other community members
16
+
17
+ Examples of unacceptable behavior by participants include:
18
+
19
+ * The use of sexualized language or imagery and unwelcome sexual attention or advances
20
+ * Trolling, insulting/derogatory comments, and personal or political attacks
21
+ * Public or private harassment
22
+ * Publishing others' private information, such as a physical or electronic address, without explicit permission
23
+ * Other conduct which could reasonably be considered inappropriate in a professional setting
24
+
25
+ ## Our Responsibilities
26
+
27
+ Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28
+
29
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30
+
31
+ ## Scope
32
+
33
+ This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34
+
35
+ ## Enforcement
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at mmoaay@sina.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38
+
39
+ Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40
+
41
+ ## Attribution
42
+
43
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44
+
45
+ [homepage]: http://contributor-covenant.org
46
+ [version]: http://contributor-covenant.org/version/1/4/
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,70 @@
1
+ # Contributing Guidelines
2
+
3
+ This document contains information and guidelines about contributing to this project.
4
+ Please read it before you start participating.
5
+
6
+ **Topics**
7
+
8
+ * [Asking Questions](#asking-questions)
9
+ * [Reporting Issues](#reporting-issues)
10
+ * [Developers Certificate of Origin](#developers-certificate-of-origin)
11
+
12
+ ## Asking Questions
13
+
14
+ We don't use GitHub as a support forum.
15
+ For any usage questions that are not specific to the project itself,
16
+ please ask on [Stack Overflow](https://stackoverflow.com) instead.
17
+ By doing so, you'll be more likely to quickly solve your problem,
18
+ and you'll allow anyone else with the same question to find the answer.
19
+ This also allows maintainers to focus on improving the project for others.
20
+
21
+ ## Reporting Issues
22
+
23
+ A great way to contribute to the project
24
+ is to send a detailed issue when you encounter an problem.
25
+ We always appreciate a well-written, thorough bug report.
26
+
27
+ Check that the project issues database
28
+ doesn't already include that problem or suggestion before submitting an issue.
29
+ If you find a match, add a quick "+1" or "I have this problem too."
30
+ Doing this helps prioritize the most common problems and requests.
31
+
32
+ When reporting issues, please include the following:
33
+
34
+ * The version of Xcode you're using
35
+ * The version of iOS or macOS you're targeting
36
+ * The full output of any stack trace or compiler error
37
+ * A code snippet that reproduces the described behavior, if applicable
38
+ * Any other details that would be useful in understanding the problem
39
+
40
+ This information will help us review and fix your issue faster.
41
+
42
+ ## Developer's Certificate of Origin
43
+
44
+ By making a contribution to this project, I certify that:
45
+
46
+ - (a) The contribution was created in whole or in part by me and I
47
+ have the right to submit it under the open source license
48
+ indicated in the file; or
49
+
50
+ - (b) The contribution is based upon previous work that, to the best
51
+ of my knowledge, is covered under an appropriate open source
52
+ license and I have the right under that license to submit that
53
+ work with modifications, whether created in whole or in part
54
+ by me, under the same open source license (unless I am
55
+ permitted to submit under a different license), as indicated
56
+ in the file; or
57
+
58
+ - (c) The contribution was provided directly to me by some other
59
+ person who certified (a), (b) or (c) and I have not modified
60
+ it.
61
+
62
+ - (d) I understand and agree that this project and the contribution
63
+ are public and that a record of the contribution (including all
64
+ personal information I submit with it, including my sign-off) is
65
+ maintained indefinitely and may be redistributed consistent with
66
+ this project or the open source license(s) involved.
67
+
68
+ ---
69
+
70
+ *Some of the ideas and wording for the statements above were based on work by the [Alamofire](https://github.com/Alamofire/Alamofire/blob/master/CONTRIBUTING.md) communities. We commend them for their efforts to facilitate collaboration in their projects.*
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ source "https://gems.ruby-china.com/"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in big_keeper.gemspec
6
+ gemspec
7
+
8
+ group :test do
9
+ gem 'rake'
10
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,125 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ kookeeper (1.0.0)
5
+ big_resources
6
+ big_stash (~> 0.1)
7
+ cocoapods
8
+ colorize
9
+ gli (~> 2.16)
10
+ plist
11
+
12
+ GEM
13
+ remote: https://gems.ruby-china.com/
14
+ specs:
15
+ CFPropertyList (3.0.0)
16
+ activesupport (4.2.11.1)
17
+ i18n (~> 0.7)
18
+ minitest (~> 5.1)
19
+ thread_safe (~> 0.3, >= 0.3.4)
20
+ tzinfo (~> 1.1)
21
+ ast (2.4.0)
22
+ atomos (0.1.3)
23
+ big_resources (0.1.2)
24
+ chunky_png
25
+ cocoapods
26
+ colorize
27
+ gli (~> 2.16)
28
+ plist
29
+ big_stash (0.6.0)
30
+ gli (~> 2.16)
31
+ chunky_png (1.3.11)
32
+ claide (1.0.2)
33
+ cocoapods (1.5.0)
34
+ activesupport (>= 4.0.2, < 5)
35
+ claide (>= 1.0.2, < 2.0)
36
+ cocoapods-core (= 1.5.0)
37
+ cocoapods-deintegrate (>= 1.0.2, < 2.0)
38
+ cocoapods-downloader (>= 1.2.0, < 2.0)
39
+ cocoapods-plugins (>= 1.0.0, < 2.0)
40
+ cocoapods-search (>= 1.0.0, < 2.0)
41
+ cocoapods-stats (>= 1.0.0, < 2.0)
42
+ cocoapods-trunk (>= 1.3.0, < 2.0)
43
+ cocoapods-try (>= 1.1.0, < 2.0)
44
+ colored2 (~> 3.1)
45
+ escape (~> 0.0.4)
46
+ fourflusher (~> 2.0.1)
47
+ gh_inspector (~> 1.0)
48
+ molinillo (~> 0.6.5)
49
+ nap (~> 1.0)
50
+ ruby-macho (~> 1.1)
51
+ xcodeproj (>= 1.5.7, < 2.0)
52
+ cocoapods-core (1.5.0)
53
+ activesupport (>= 4.0.2, < 6)
54
+ fuzzy_match (~> 2.0.4)
55
+ nap (~> 1.0)
56
+ cocoapods-deintegrate (1.0.4)
57
+ cocoapods-downloader (1.2.2)
58
+ cocoapods-plugins (1.0.0)
59
+ nap
60
+ cocoapods-search (1.0.0)
61
+ cocoapods-stats (1.1.0)
62
+ cocoapods-trunk (1.3.1)
63
+ nap (>= 0.8, < 2.0)
64
+ netrc (~> 0.11)
65
+ cocoapods-try (1.1.0)
66
+ colored2 (3.1.2)
67
+ colorize (0.8.1)
68
+ concurrent-ruby (1.1.5)
69
+ escape (0.0.4)
70
+ fourflusher (2.0.1)
71
+ fuzzy_match (2.0.4)
72
+ gh_inspector (1.1.3)
73
+ gli (2.18.0)
74
+ i18n (0.9.5)
75
+ concurrent-ruby (~> 1.0)
76
+ minitest (5.11.3)
77
+ molinillo (0.6.6)
78
+ nanaimo (0.2.6)
79
+ nap (1.1.0)
80
+ netrc (0.11.0)
81
+ parallel (1.12.1)
82
+ parser (2.5.1.2)
83
+ ast (~> 2.4.0)
84
+ plist (3.5.0)
85
+ powerpack (0.1.2)
86
+ rainbow (2.2.2)
87
+ rake
88
+ rake (10.5.0)
89
+ rubocop (0.50.0)
90
+ parallel (~> 1.10)
91
+ parser (>= 2.3.3.1, < 3.0)
92
+ powerpack (~> 0.1)
93
+ rainbow (>= 2.2.2, < 3.0)
94
+ ruby-progressbar (~> 1.7)
95
+ unicode-display_width (~> 1.0, >= 1.0.1)
96
+ ruby-macho (1.4.0)
97
+ ruby-progressbar (1.9.0)
98
+ thread_safe (0.3.6)
99
+ tzinfo (1.2.5)
100
+ thread_safe (~> 0.1)
101
+ unicode-display_width (1.4.0)
102
+ xcodeproj (1.8.2)
103
+ CFPropertyList (>= 2.3.3, < 4.0)
104
+ atomos (~> 0.1.3)
105
+ claide (>= 1.0.2, < 2.0)
106
+ colored2 (~> 3.1)
107
+ nanaimo (~> 0.2.6)
108
+
109
+ PLATFORMS
110
+ ruby
111
+
112
+ DEPENDENCIES
113
+ big_resources (~> 0.1.2)
114
+ big_stash (~> 0.1)
115
+ bigkeeper!
116
+ bundler (~> 1.15)
117
+ cocoapods
118
+ colorize
119
+ gli (~> 2.16)
120
+ plist
121
+ rake
122
+ rubocop (~> 0.50.0)
123
+
124
+ BUNDLED WITH
125
+ 1.17.2
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 BigKeeper.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,113 @@
1
+ [English](./docs/en-US/README.md)
2
+
3
+ ---
4
+
5
+ # bigkeeper
6
+
7
+ ![](./resources/banner.png)
8
+
9
+ [![Build Status](https://travis-ci.org/BigKeeper/bigkeeper.svg?branch=master)](https://travis-ci.org/BigKeeper/bigkeeper)
10
+ [![Maintainability](https://api.codeclimate.com/v1/badges/c6dc4161e84fcec9a890/maintainability)](https://codeclimate.com/github/BigKeeper/big-keeper/maintainability)
11
+ [![Gem Version](https://badge.fury.io/rb/bigkeeper.svg)](https://rubygems.org/gems/bigkeeper)
12
+ [![Language: Ruby](https://img.shields.io/badge/language-Ruby-da212f.svg)](https://www.ruby-lang.org/)
13
+ [![License](https://img.shields.io/badge/license-MIT-000000.svg)](https://github.com/BigKeeper/big-keeper/blob/master/LICENSE)
14
+ [![Gitter](https://img.shields.io/gitter/room/BigKeeper/BigKeeper.svg)](https://gitter.im/Big-Keeper/Lobby)
15
+
16
+ bigkeeper 是一个 **iOS&Android 模块化项目**效率提升工具,旨在帮助有模块化需求的团队更轻松的渡过“半模块化”尴尬期。
17
+
18
+ 使用这个工具后,开发者**在主项目内**即可完成**包括其他业务模块在内**所有代码的编写和管理。
19
+
20
+ 我们借鉴 CocoaPods 的做法,开发团队只需要在主项目中加入一个 Bigkeeper 文件,然后利用我们提供的 `big` 命令,即可更便捷的实现**代码分支**和**业务模块**的管理;另外,通过 `big` 命令提供的流程,也能帮助开发者养成更规范的日常开发习惯,减轻项目管理者的负担。
21
+
22
+ ## 应用场景
23
+
24
+ 在模块化项目的过渡阶段,我们往往会碰到业务拆分不是那么彻底的情况(PS:比如主项目中仍然存在业务相关代码),这样就会导致一系列问题:
25
+
26
+ - 开发流程方面:开发者在开发一个 feature 时需要维护多个项目的分支,同时还要频繁修改主项目的 `Podfile`;
27
+ - 项目管理者需要花很大精力去和团队成员同步项目管理规范流程,尤其对于新人,挑战很大;
28
+ - 开发过程中如果碰到突发情况需要开新分支处理问题时对当前工作区的保存操作会很繁琐(PS:因为涉及到多个项目);
29
+ - 日常开发过程中类似 commit、pull、push 等操作比较繁琐(PS:因为涉及到多个项目);
30
+ - 资源(比如图片)散落在各个业务模块,可能存在重名、重复等问题,难以管理;
31
+ - 业务模块可能存在横向依赖的问题,导致业务模块间耦合严重,不能单独编译运行。
32
+ - 各模块依赖的版本没有统一的同步更新方式,导致各个模块的开发环境不一致,问题百出。
33
+
34
+ bigkeeper 的出现就是为了解决这些问题。
35
+
36
+ > 注:也有很多人认为直接做一个完整的组件化项目更合理,而不需要采用这样曲折的方案,但是很多时候我们并没有这么多的精力直接去做这些事情,bigkeeper 存在的价值也是为了帮助开发团队在** iOS&Android 模块化项目过渡阶段**能更轻松的往前走。
37
+
38
+ ## 安装
39
+
40
+ - 当作 Ruby Gem 使用:
41
+ 在项目的 Gemfile 中加入下面这行:
42
+
43
+ ```ruby
44
+ gem 'bigkeeper'
45
+ ```
46
+
47
+ 然后执行:
48
+
49
+ $ bundle
50
+
51
+ - 直接安装:
52
+
53
+ $ gem install bigkeeper
54
+
55
+ ## 使用方法
56
+
57
+ - [Bigkeeper 文件配置](./docs/zh-CN/BIGKEEPER_FILE.md)
58
+ - `bigkeeper` 工具使用:
59
+
60
+ 直接在命令行执行 `bigkeeper` 可以查看其提供的所有功能:
61
+
62
+ ```
63
+ NAME
64
+ big - Efficiency improvement for iOS&Android module development, iOSer&Android using this tool can make module development easier.
65
+
66
+ SYNOPSIS
67
+ big [global options] command [command options] [arguments...]
68
+
69
+
70
+ GLOBAL OPTIONS
71
+ --help - Show this message
72
+ -p, --path=arg - (default: ./)
73
+ -u, --user=arg - (default: mmoaay)
74
+ -v, --ver=arg - (default: Version in Bigkeeper file)
75
+
76
+ COMMANDS
77
+ feature - Gitflow feature operations
78
+ help - Shows a list of commands or help for one command
79
+ hotfix - Gitflow hotfix operations
80
+ image - Image operations
81
+ podfile - Podfile operation
82
+ release - Gitflow release operations
83
+ spec - Spec operations
84
+ version - Show version of bigkeeper
85
+ ```
86
+
87
+ 全局参数如下:
88
+
89
+ - -p, --path:主项目所在的目录,默认是执行 bigkeeper 命令的当前目录;
90
+ - -v, --ver:版本号,如果没有指定的话,会以主项目 [Bigkeeper 文件](./docs/zh-CN/BIGKEEPER_FILE.md)中指定的版本为准。
91
+ - -u, --user:用户名,默认是 git global config 的 user.name,会显示在命令提示信息中,比如上述提示信息中的默认用户名是 mmoaay
92
+
93
+ 功能列表如下:
94
+
95
+ - [feature](./docs/zh-CN/FEATURE&HOTFIX.md):功能开发流程;
96
+ - [hotfix](./docs/zh-CN/FEATURE&HOTFIX.md):线上 Bug 修复流程;
97
+ - [release](./docs/zh-CN/RELEASE.md):发布流程;
98
+ - [podfile](./docs/zh-CN/PODFILE.md):Podfile 管理;
99
+ - [image](./docs/zh-CN/IMAGE.md):图片管理;
100
+ - [spec](./docs/zh-CN/SPEC.md):spec 管理;
101
+ - version:查看 bigkeeper 当前版本号;
102
+ - help:查看 bigkeeper 帮助文档。
103
+
104
+ ## 其他
105
+
106
+ - [一些建议](./docs/zh-CN/RECOMMEND.md)
107
+ - [一些思考]()
108
+
109
+ ## 协议
110
+
111
+ ![](https://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/License_icon-mit-88x31-2.svg/128px-License_icon-mit-88x31-2.svg.png)
112
+
113
+ bigkeeper 基于 MIT 协议进行分发和使用,更多信息参见协议文件。
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -0,0 +1,49 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "big_keeper/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "kookeeper"
8
+ spec.version = BigKeeper::VERSION
9
+ spec.authors = ["weiyanwu"]
10
+ spec.email = ["2126724184@qq.com"]
11
+
12
+ spec.summary = %q{Efficiency improvement for iOS&Android modular development.}
13
+ spec.description = %q{Efficiency improvement for iOS&Android modular development, iOSer&Androider using this tool can make modular development easier.}
14
+ spec.homepage = "https://github.com/BigKeeper/bigkeeper"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
21
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against " \
23
+ "public gem pushes."
24
+ end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
+ f.match(%r{^(test|spec|features)/})
28
+ end
29
+ spec.bindir = "bin"
30
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
31
+ spec.require_paths = ["lib"]
32
+
33
+ spec.add_runtime_dependency "gli", "~> 2.16"
34
+ spec.add_runtime_dependency "big_stash", "~> 0.1"
35
+ spec.add_runtime_dependency "cocoapods"
36
+ spec.add_runtime_dependency "plist"
37
+ spec.add_runtime_dependency "colorize"
38
+ spec.add_runtime_dependency "big_resources"
39
+
40
+ spec.add_development_dependency "bundler", "~> 1.15"
41
+ spec.add_development_dependency "rake", "~> 10.0"
42
+ spec.add_development_dependency "gli", "~> 2.16"
43
+ spec.add_development_dependency "big_stash", "~> 0.1"
44
+ spec.add_development_dependency "big_resources", "~> 0.1.2"
45
+ spec.add_development_dependency "cocoapods"
46
+ spec.add_development_dependency "plist"
47
+ spec.add_development_dependency "colorize"
48
+ spec.add_development_dependency "rubocop", "~> 0.50.0"
49
+ end
data/bin/big ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ #require "bundler/setup"
4
+ require "big_keeper"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
File without changes
@@ -0,0 +1,54 @@
1
+
2
+
3
+ [中文](../zh-CN/README.md)
4
+
5
+ ---
6
+
7
+ # bigkeeper - All in home project
8
+
9
+ ![](../../resources/banner.png)
10
+
11
+ [![Build Status](https://travis-ci.org/BigKeeper/bigkeeper.svg?branch=master)](https://travis-ci.org/BigKeeper/bigkeeper)
12
+ [![Maintainability](https://api.codeclimate.com/v1/badges/c6dc4161e84fcec9a890/maintainability)](https://codeclimate.com/github/BigKeeper/bigkeeper/maintainability)
13
+ [![Gem Version](https://badge.fury.io/rb/bigkeeper.svg)](https://rubygems.org/gems/bigkeeper)
14
+ [![Language: Ruby](https://img.shields.io/badge/language-Ruby-da212f.svg)](https://www.ruby-lang.org/)
15
+ [![License](https://img.shields.io/badge/license-MIT-000000.svg)](https://github.com/BigKeeper/big-keeper/blob/master/LICENSE)
16
+ [![Gitter](https://img.shields.io/gitter/room/BigKeeper/BigKeeper.svg)](https://gitter.im/Big-Keeper/Lobby)
17
+
18
+ bigkeeper is an efficiency improvement for iOS&Android modular development, iOSer&Androider using this tool can make modular development easier.
19
+
20
+ ## Installation
21
+
22
+ Add this line to your application's Gemfile:
23
+
24
+ ```ruby
25
+ gem 'bigkeeper'
26
+ ```
27
+
28
+ And then execute:
29
+
30
+ $ bundle
31
+
32
+ Or install it yourself as:
33
+
34
+ $ gem install bigkeeper
35
+
36
+ ## Usage
37
+
38
+ Run `big` to learn how to use bigkeeper.
39
+
40
+ ## Development
41
+
42
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
43
+
44
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
45
+
46
+ ## Contributing
47
+
48
+ Bug reports and pull requests are welcome on GitHub at https://github.com/BigKeeper/bigkeeper.
49
+
50
+ ## License
51
+
52
+ ![](https://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/License_icon-mit-88x31-2.svg/128px-License_icon-mit-88x31-2.svg.png)
53
+
54
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).