yptools 1.0.1 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/lib/yptools/install/yp_install.rb +10 -2
  3. data/lib/yptools/mgc/yp_makegarbagecode.rb +19 -3
  4. data/lib/yptools.rb +4 -6
  5. metadata +30 -66
  6. data/lib/yptools/install/mvvm/install-template.sh +0 -15
  7. data/lib/yptools/install/mvvm/kMVVM.xctemplate/NSObjectObjective-C/___FILEBASENAME___.h +0 -11
  8. data/lib/yptools/install/mvvm/kMVVM.xctemplate/NSObjectObjective-C/___FILEBASENAME___.m +0 -7
  9. data/lib/yptools/install/mvvm/kMVVM.xctemplate/NSObjectSwift/___FILEBASENAME___.swift +0 -7
  10. data/lib/yptools/install/mvvm/kMVVM.xctemplate/TemplateIcon.png +0 -0
  11. data/lib/yptools/install/mvvm/kMVVM.xctemplate/TemplateIcon@2x.png +0 -0
  12. data/lib/yptools/install/mvvm/kMVVM.xctemplate/TemplateInfo.plist +0 -224
  13. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewObjective-C/___FILEBASENAME___.h +0 -11
  14. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewObjective-C/___FILEBASENAME___.m +0 -7
  15. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewSwift/___FILEBASENAME___.swift +0 -7
  16. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBObjective-C/___FILEBASENAME___.h +0 -11
  17. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBObjective-C/___FILEBASENAME___.m +0 -12
  18. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBObjective-C/___FILEBASENAME___.xib +0 -17
  19. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBSwift/___FILEBASENAME___.swift +0 -12
  20. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBSwift/___FILEBASENAME___.xib +0 -17
  21. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellObjective-C/___FILEBASENAME___.h +0 -11
  22. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellObjective-C/___FILEBASENAME___.m +0 -7
  23. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellSwift/___FILEBASENAME___.swift +0 -7
  24. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBObjective-C/___FILEBASENAME___.h +0 -11
  25. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBObjective-C/___FILEBASENAME___.m +0 -12
  26. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBObjective-C/___FILEBASENAME___.xib +0 -21
  27. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBSwift/___FILEBASENAME___.swift +0 -12
  28. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBSwift/___FILEBASENAME___.xib +0 -21
  29. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerObjective-C/___FILEBASENAME___.h +0 -11
  30. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerObjective-C/___FILEBASENAME___.m +0 -87
  31. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerSwift/___FILEBASENAME___.swift +0 -83
  32. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBObjective-C/___FILEBASENAME___.h +0 -11
  33. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBObjective-C/___FILEBASENAME___.m +0 -87
  34. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBObjective-C/___FILEBASENAME___.xib +0 -31
  35. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBSwift/___FILEBASENAME___.swift +0 -83
  36. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBSwift/___FILEBASENAME___.xib +0 -31
  37. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellObjective-C/___FILEBASENAME___.h +0 -11
  38. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellObjective-C/___FILEBASENAME___.m +0 -26
  39. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellSwift/___FILEBASENAME___.swift +0 -18
  40. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.h +0 -11
  41. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.m +0 -18
  42. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.xib +0 -21
  43. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBSwift/___FILEBASENAME___.swift +0 -18
  44. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBSwift/___FILEBASENAME___.xib +0 -21
  45. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerObjective-C/___FILEBASENAME___.h +0 -11
  46. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerObjective-C/___FILEBASENAME___.m +0 -87
  47. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerSwift/___FILEBASENAME___.swift +0 -84
  48. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBObjective-C/___FILEBASENAME___.h +0 -11
  49. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBObjective-C/___FILEBASENAME___.m +0 -103
  50. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBObjective-C/___FILEBASENAME___.xib +0 -26
  51. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBSwift/___FILEBASENAME___.swift +0 -84
  52. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBSwift/___FILEBASENAME___.xib +0 -26
  53. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___FILEBASENAME___.h +0 -11
  54. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___FILEBASENAME___.m +0 -94
  55. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_Proxy___.h +0 -15
  56. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_Proxy___.m +0 -39
  57. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_TableViewCell___.h +0 -11
  58. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_TableViewCell___.m +0 -30
  59. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_ViewModel___.h +0 -24
  60. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_ViewModel___.m +0 -51
  61. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerSwift/___FILEBASENAME___.swift +0 -24
  62. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.h +0 -9
  63. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.m +0 -61
  64. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.xib +0 -43
  65. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBSwift/___FILEBASENAME___.swift +0 -24
  66. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBSwift/___FILEBASENAME___.xib +0 -22
  67. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewObjective-C/___FILEBASENAME___.h +0 -11
  68. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewObjective-C/___FILEBASENAME___.m +0 -26
  69. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewSwift/___FILEBASENAME___.swift +0 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2a1d81fcf7afcc20f70b784156f180c24d8c74ad8fd4cae17ee98138fb81955
4
- data.tar.gz: 48c8ba6dfcd339de5568cdc22c84cba2d3add124786889524569fffe3f6f47b7
3
+ metadata.gz: '0733003875644967a3c509aba882ca4943103073c7654a4261eeb8f5ba344539'
4
+ data.tar.gz: 03205021d0ba02fe41f25c83d2282c6bfdb86b9484da8fabc7d099690f96ab48
5
5
  SHA512:
6
- metadata.gz: d3e6f6fe10c5f9bc342e4b75cae6d75112d79b4dbcdc5394e3995b36de223af488919bde79499d82d0877059cad9d89d71573ac1699a7bd67f5e5a5f3913d4f5
7
- data.tar.gz: 2c4560f3189ad2f750eaf3b493063fdf19ede759155255b29f226e91404f0a51f5e1c374d84e1a9522aca0004400323dea95623a568dd97d4ff0743eb15c2436
6
+ metadata.gz: 5a96eb5ad7af9f4b9b39cb4ca207bec5f5416ba71fcd81ea8422cbc5a48690f32bdb1d4854af02b1c83699af575a6efc5ca2b89fc13f0656681c172a5a8f077e
7
+ data.tar.gz: 4022ddd23fb4a6d523e2bf4fba21ed7be57b6d175dd07206979c266fe53decbdca48e95030db135318a6e1ff9f0a4b6b0359304d1c32f0ecfd50ad392966ae32
@@ -7,7 +7,16 @@ require_relative '../mgc/yp_makegarbagecode'
7
7
  class YPInstall
8
8
 
9
9
  def self.install(name)
10
-
10
+ cmd = name
11
+ case cmd
12
+ when 'mvvm'
13
+ YPInstall.mvvm
14
+ else
15
+ yp_log_fail "'yptools install #{name}' 暂无,敬请期待"
16
+ end
17
+ end
18
+
19
+ def self.mvvm
11
20
  templates_url = "git@github.com:HansenCCC/kMVVM.git"
12
21
  templates_path = Dir.pwd
13
22
  templates_name = "kMVVM"
@@ -27,7 +36,6 @@ class YPInstall
27
36
  yp_method_rmdir templates_path
28
37
  yp_log_doing "移除临时文件#{templates_path}"
29
38
  yp_log_success "安装#{templates_url}完成,重新打开Xcode才能生效"
30
-
31
39
  end
32
40
 
33
41
  end
@@ -268,9 +268,25 @@ def yp_tools_method_makeGarbage (suffix)
268
268
  return
269
269
  end
270
270
 
271
- yp_method_rmdir yp_outPath
272
- yp_method_mkdir yp_outPath
273
- yp_method_makeGarbage yp_path, yp_outPath, suffix
271
+ yp_isDo = 1
272
+
273
+ if File.exists?(yp_outPath)
274
+ yp_isDo = 0
275
+ yp_log_success "检测'#{yp_outPath}' 文件夹已经存在,是否覆盖?(Enter Yes Or No)' :"
276
+ val = $stdin.gets.chomp
277
+
278
+ if val == 'Yes' || val == 'yes' || val == 'YES' || val == 'Y' || val == 'y' || val.length == 0
279
+ yp_isDo = 1
280
+ end
281
+ end
282
+
283
+ if yp_isDo == 1
284
+ yp_method_rmdir yp_outPath
285
+ yp_method_mkdir yp_outPath
286
+ yp_method_makeGarbage yp_path, yp_outPath, suffix
287
+ else
288
+ yp_log_fail "操作已取消"
289
+ end
274
290
 
275
291
  yp_log_doing "🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀";
276
292
  end
data/lib/yptools.rb CHANGED
@@ -9,11 +9,11 @@ class YPTools
9
9
  cmd = argvs[0]
10
10
  case cmd
11
11
  when 'help'
12
- YPTools.help
12
+ self.help
13
13
  when 'mgc'
14
14
  if argvs.size > 1
15
15
  suffix = argvs[1]
16
- YPTools.mgc suffix
16
+ self.mgc suffix
17
17
  else
18
18
  yp_log_fail "'yptools mgc ..' 参数缺失"
19
19
  self.help
@@ -21,15 +21,13 @@ class YPTools
21
21
  when 'install'
22
22
  if argvs.size > 1
23
23
  name = argvs[1]
24
- YPTools.install name
24
+ self.install name
25
25
  else
26
26
  yp_log_fail "'yptools install ..' 参数缺失"
27
27
  self.help
28
28
  end
29
- when 'mvvm'
30
- YPTools.mvvm
31
29
  else
32
- YPTools.help
30
+ self.help
33
31
  end
34
32
 
35
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yptools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - chenghengsheng
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-29 00:00:00.000000000 Z
11
+ date: 2022-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,6 +52,34 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '5.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: colored
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.2'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.2'
69
+ - !ruby/object:Gem::Dependency
70
+ name: fileutils
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 1.1.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 1.1.0
55
83
  description: Some useful tools make me happy
56
84
  email:
57
85
  - 2534550460@qq.com
@@ -63,70 +91,6 @@ files:
63
91
  - bin/yptools
64
92
  - lib/yptools.rb
65
93
  - lib/yptools/help/yp_help.rb
66
- - lib/yptools/install/mvvm/install-template.sh
67
- - lib/yptools/install/mvvm/kMVVM.xctemplate/NSObjectObjective-C/___FILEBASENAME___.h
68
- - lib/yptools/install/mvvm/kMVVM.xctemplate/NSObjectObjective-C/___FILEBASENAME___.m
69
- - lib/yptools/install/mvvm/kMVVM.xctemplate/NSObjectSwift/___FILEBASENAME___.swift
70
- - lib/yptools/install/mvvm/kMVVM.xctemplate/TemplateIcon.png
71
- - lib/yptools/install/mvvm/kMVVM.xctemplate/TemplateIcon@2x.png
72
- - lib/yptools/install/mvvm/kMVVM.xctemplate/TemplateInfo.plist
73
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewObjective-C/___FILEBASENAME___.h
74
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewObjective-C/___FILEBASENAME___.m
75
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewSwift/___FILEBASENAME___.swift
76
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBObjective-C/___FILEBASENAME___.h
77
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBObjective-C/___FILEBASENAME___.m
78
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBObjective-C/___FILEBASENAME___.xib
79
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBSwift/___FILEBASENAME___.swift
80
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBSwift/___FILEBASENAME___.xib
81
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellObjective-C/___FILEBASENAME___.h
82
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellObjective-C/___FILEBASENAME___.m
83
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellSwift/___FILEBASENAME___.swift
84
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBObjective-C/___FILEBASENAME___.h
85
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBObjective-C/___FILEBASENAME___.m
86
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBObjective-C/___FILEBASENAME___.xib
87
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBSwift/___FILEBASENAME___.swift
88
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBSwift/___FILEBASENAME___.xib
89
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerObjective-C/___FILEBASENAME___.h
90
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerObjective-C/___FILEBASENAME___.m
91
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerSwift/___FILEBASENAME___.swift
92
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBObjective-C/___FILEBASENAME___.h
93
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBObjective-C/___FILEBASENAME___.m
94
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBObjective-C/___FILEBASENAME___.xib
95
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBSwift/___FILEBASENAME___.swift
96
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBSwift/___FILEBASENAME___.xib
97
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellObjective-C/___FILEBASENAME___.h
98
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellObjective-C/___FILEBASENAME___.m
99
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellSwift/___FILEBASENAME___.swift
100
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.h
101
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.m
102
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.xib
103
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBSwift/___FILEBASENAME___.swift
104
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBSwift/___FILEBASENAME___.xib
105
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerObjective-C/___FILEBASENAME___.h
106
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerObjective-C/___FILEBASENAME___.m
107
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerSwift/___FILEBASENAME___.swift
108
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBObjective-C/___FILEBASENAME___.h
109
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBObjective-C/___FILEBASENAME___.m
110
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBObjective-C/___FILEBASENAME___.xib
111
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBSwift/___FILEBASENAME___.swift
112
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBSwift/___FILEBASENAME___.xib
113
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___FILEBASENAME___.h
114
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___FILEBASENAME___.m
115
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_Proxy___.h
116
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_Proxy___.m
117
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_TableViewCell___.h
118
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_TableViewCell___.m
119
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_ViewModel___.h
120
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_ViewModel___.m
121
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerSwift/___FILEBASENAME___.swift
122
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.h
123
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.m
124
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.xib
125
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBSwift/___FILEBASENAME___.swift
126
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBSwift/___FILEBASENAME___.xib
127
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewObjective-C/___FILEBASENAME___.h
128
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewObjective-C/___FILEBASENAME___.m
129
- - lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewSwift/___FILEBASENAME___.swift
130
94
  - lib/yptools/install/yp_install.rb
131
95
  - lib/yptools/log/yp_log.rb
132
96
  - lib/yptools/mgc/yp_makegarbagecode.rb
@@ -1,15 +0,0 @@
1
-
2
- starttime=$(date +%Y-%m-%d\ %H:%M:%S)
3
- echo "🚀 开始时间 $starttime 🚀"
4
- echo `pwd`
5
-
6
- #export kSourceDir="~/Library/Developer/Xcode/Templates/Source/"
7
- #export kTemplateUbanDir="~/Library/Developer/Xcode/Templates/Source/JiangXi\ Uban\ MVVM.xctemplate"
8
-
9
- mkdir -p ~/Library/Developer/Xcode/Templates/Source/
10
-
11
- rm -rf dir ~/Library/Developer/Xcode/Templates/Source/kMVVM.xctemplate
12
-
13
- cp -R kMVVM.xctemplate ~/Library/Developer/Xcode/Templates/Source/kMVVM.xctemplate
14
-
15
- echo "🚀 结束时间 $endtime 🚀"
@@ -1,11 +0,0 @@
1
- //___FILEHEADER___
2
-
3
- ___IMPORTHEADER_cocoaTouchSubclass___
4
-
5
- NS_ASSUME_NONNULL_BEGIN
6
-
7
- @interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___
8
-
9
- @end
10
-
11
- NS_ASSUME_NONNULL_END
@@ -1,7 +0,0 @@
1
- //___FILEHEADER___
2
-
3
- #import "___FILEBASENAME___.h"
4
-
5
- @implementation ___FILEBASENAMEASIDENTIFIER___
6
-
7
- @end
@@ -1,7 +0,0 @@
1
- //___FILEHEADER___
2
-
3
- import UIKit
4
-
5
- class ___FILEBASENAMEASIDENTIFIER___: ___VARIABLE_cocoaTouchSubclass___ {
6
-
7
- }
@@ -1,224 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>Kind</key>
6
- <string>Xcode.IDEFoundation.TextSubstitutionFileTemplateKind</string>
7
- <key>Description</key>
8
- <string>A Cocoa Touch class.</string>
9
- <key>Summary</key>
10
- <string>A Cocoa Touch class</string>
11
- <key>SortOrder</key>
12
- <string>0</string>
13
- <key>DefaultCompletionName</key>
14
- <string>MyClass</string>
15
- <key>Platforms</key>
16
- <array>
17
- <string>com.apple.platform.iphoneos</string>
18
- </array>
19
- <key>Options</key>
20
- <array>
21
- <dict>
22
- <key>Identifier</key>
23
- <string>productName</string>
24
- <key>Required</key>
25
- <true/>
26
- <key>Name</key>
27
- <string>Class:</string>
28
- <key>Description</key>
29
- <string>The name of the class to create</string>
30
- <key>Type</key>
31
- <string>text</string>
32
- <key>NotPersisted</key>
33
- <true/>
34
- </dict>
35
- <dict>
36
- <key>Identifier</key>
37
- <string>cocoaTouchSubclass</string>
38
- <key>Required</key>
39
- <string>YES</string>
40
- <key>Name</key>
41
- <string>Subclass of:</string>
42
- <key>Description</key>
43
- <string>What class to subclass in the new file</string>
44
- <key>Type</key>
45
- <string>class</string>
46
- <key>Default</key>
47
- <string>NSObject</string>
48
- <key>FallbackHeader</key>
49
- <string>#import &lt;UIKit/UIKit.h&gt;</string>
50
- <key>Values</key>
51
- <array>
52
- <string>NSObject</string>
53
- <string>UIView</string>
54
- <string>UIViewController</string>
55
- <string>UITableViewController</string>
56
- <string>UITableViewCell</string>
57
- <string>UICollectionViewController</string>
58
- <string>UICollectionViewCell</string>
59
- <string>UICollectionReusableView</string>
60
- </array>
61
- <key>Suffixes</key>
62
- <dict>
63
- <key>UIViewController</key>
64
- <string>ViewController</string>
65
- <key>UITableViewController</key>
66
- <string>TableViewController</string>
67
- <key>UITableViewCell</key>
68
- <string>TableViewCell</string>
69
- <key>UICollectionViewController</key>
70
- <string>CollectionViewController</string>
71
- <key>UICollectionViewCell</key>
72
- <string>CollectionViewCell</string>
73
- <key>UICollectionReusableView</key>
74
- <string>CollectionReusableView</string>
75
- </dict>
76
- </dict>
77
- <dict>
78
- <key>Default</key>
79
- <string>ViewModel</string>
80
- <key>Identifier</key>
81
- <string>ViewModel</string>
82
- <key>Required</key>
83
- <true/>
84
- <key>Name</key>
85
- <string>ViewModel:</string>
86
- <key>Description</key>
87
- <string>The name of the viewModel to create</string>
88
- <key>Type</key>
89
- <string>text</string>
90
- <key>NotPersisted</key>
91
- <true/>
92
- </dict>
93
- <dict>
94
- <key>Default</key>
95
- <string>Proxy</string>
96
- <key>Identifier</key>
97
- <string>Proxy</string>
98
- <key>Required</key>
99
- <true/>
100
- <key>Name</key>
101
- <string>Proxy:</string>
102
- <key>Description</key>
103
- <string>The name of the proxy to create</string>
104
- <key>Type</key>
105
- <string>text</string>
106
- <key>NotPersisted</key>
107
- <true/>
108
- </dict>
109
- <dict>
110
- <key>Default</key>
111
- <string>TableViewCell</string>
112
- <key>Identifier</key>
113
- <string>TableViewCell</string>
114
- <key>Required</key>
115
- <true/>
116
- <key>Name</key>
117
- <string>TableViewCell:</string>
118
- <key>Description</key>
119
- <string>The name of the TableViewCell to create</string>
120
- <key>Type</key>
121
- <string>text</string>
122
- <key>NotPersisted</key>
123
- <true/>
124
- </dict>
125
- <dict>
126
- <key>Identifier</key>
127
- <string>XIB</string>
128
- <key>Name</key>
129
- <string>Also create XIB file</string>
130
- <key>Description</key>
131
- <string>Whether to create a XIB file with the same name</string>
132
- <key>Type</key>
133
- <string>checkbox</string>
134
- <key>RequiredOptions</key>
135
- <dict>
136
- <key>cocoaTouchSubclass</key>
137
- <array>
138
- <string>UIViewController</string>
139
- <string>UITableViewController</string>
140
- <string>UITableViewCell</string>
141
- <string>UICollectionViewController</string>
142
- <string>UICollectionViewCell</string>
143
- <string>UICollectionReusableView</string>
144
- </array>
145
- </dict>
146
- <key>Default</key>
147
- <string>false</string>
148
- <key>NotPersisted</key>
149
- <true/>
150
- </dict>
151
- <dict>
152
- <key>Identifier</key>
153
- <string>languageChoice</string>
154
- <key>Required</key>
155
- <true/>
156
- <key>Name</key>
157
- <string>Language:</string>
158
- <key>Description</key>
159
- <string>The implementation language</string>
160
- <key>Type</key>
161
- <string>popup</string>
162
- <key>Default</key>
163
- <string>Objective-C</string>
164
- <key>Values</key>
165
- <array>
166
- <string>Swift</string>
167
- <string>Objective-C</string>
168
- </array>
169
- <key>MainTemplateFiles</key>
170
- <dict>
171
- <key>Swift</key>
172
- <string>___FILEBASENAME___.swift</string>
173
- <key>Objective-C</key>
174
- <string>___FILEBASENAME___.m</string>
175
- </dict>
176
- <key>AllowedTypes</key>
177
- <dict>
178
- <key>Swift</key>
179
- <array>
180
- <string>public.swift-source</string>
181
- </array>
182
- <key>Objective-C</key>
183
- <array>
184
- <string>public.objective-c-source</string>
185
- <string>public.objective-c-plus-plus-source</string>
186
- </array>
187
- </dict>
188
- </dict>
189
- <dict>
190
- <key>Identifier</key>
191
- <string>safariExtensionType</string>
192
- <key>Units</key>
193
- <dict>
194
- <key>Safari App Extension</key>
195
- <array>
196
- <dict>
197
- <key>RequiredOptions</key>
198
- <dict>
199
- <key>languageChoice</key>
200
- <string>Objective-C</string>
201
- </dict>
202
- <key>Nodes</key>
203
- <array>
204
- <string>Resources/___VARIABLE_ViewModel___.h</string>
205
- </array>
206
- <key>Definitions</key>
207
- <dict>
208
- <key>Resources/___VARIABLE_ViewModel___.h</key>
209
- <dict>
210
- <key>Path</key>
211
- <string>___VARIABLE_ViewModel___.h</string>
212
- <key>Group</key>
213
- <string>Resources</string>
214
- <key>SortOrder</key>
215
- <integer>2</integer>
216
- </dict>
217
- </dict>
218
- </dict>
219
- </array>
220
- </dict>
221
- </dict>
222
- </array>
223
- </dict>
224
- </plist>
@@ -1,11 +0,0 @@
1
- //___FILEHEADER___
2
-
3
- ___IMPORTHEADER_cocoaTouchSubclass___
4
-
5
- NS_ASSUME_NONNULL_BEGIN
6
-
7
- @interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___
8
-
9
- @end
10
-
11
- NS_ASSUME_NONNULL_END
@@ -1,7 +0,0 @@
1
- //___FILEHEADER___
2
-
3
- #import "___FILEBASENAME___.h"
4
-
5
- @implementation ___FILEBASENAMEASIDENTIFIER___
6
-
7
- @end
@@ -1,7 +0,0 @@
1
- //___FILEHEADER___
2
-
3
- import UIKit
4
-
5
- class ___FILEBASENAMEASIDENTIFIER___: ___VARIABLE_cocoaTouchSubclass___ {
6
-
7
- }
@@ -1,11 +0,0 @@
1
- //___FILEHEADER___
2
-
3
- ___IMPORTHEADER_cocoaTouchSubclass___
4
-
5
- NS_ASSUME_NONNULL_BEGIN
6
-
7
- @interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___
8
-
9
- @end
10
-
11
- NS_ASSUME_NONNULL_END
@@ -1,12 +0,0 @@
1
- //___FILEHEADER___
2
-
3
- #import "___FILEBASENAME___.h"
4
-
5
- @implementation ___FILEBASENAMEASIDENTIFIER___
6
-
7
- - (void)awakeFromNib {
8
- [super awakeFromNib];
9
- // Initialization code
10
- }
11
-
12
- @end
@@ -1,17 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13142" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
3
- <dependencies>
4
- <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12042"/>
5
- <capability name="Safe area layout guides" minToolsVersion="9.0"/>
6
- <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
7
- </dependencies>
8
- <objects>
9
- <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
10
- <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
11
- <collectionReusableView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="U6b-Vx-4bR">
12
- <rect key="frame" x="0.0" y="0.0" width="320" height="50"/>
13
- <autoresizingMask key="autoresizingMask"/>
14
- <viewLayoutGuide key="safeArea" id="9Gg-ye-v9C"/>
15
- </collectionReusableView>
16
- </objects>
17
- </document>
@@ -1,12 +0,0 @@
1
- //___FILEHEADER___
2
-
3
- import UIKit
4
-
5
- class ___FILEBASENAMEASIDENTIFIER___: ___VARIABLE_cocoaTouchSubclass___ {
6
-
7
- override func awakeFromNib() {
8
- super.awakeFromNib()
9
- // Initialization code
10
- }
11
-
12
- }
@@ -1,17 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13142" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
3
- <dependencies>
4
- <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12042"/>
5
- <capability name="Safe area layout guides" minToolsVersion="9.0"/>
6
- <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
7
- </dependencies>
8
- <objects>
9
- <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
10
- <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
11
- <collectionReusableView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="U6b-Vx-4bR">
12
- <rect key="frame" x="0.0" y="0.0" width="320" height="50"/>
13
- <autoresizingMask key="autoresizingMask"/>
14
- <viewLayoutGuide key="safeArea" id="VXr-Tz-HHm"/>
15
- </collectionReusableView>
16
- </objects>
17
- </document>
@@ -1,11 +0,0 @@
1
- //___FILEHEADER___
2
-
3
- ___IMPORTHEADER_cocoaTouchSubclass___
4
-
5
- NS_ASSUME_NONNULL_BEGIN
6
-
7
- @interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___
8
-
9
- @end
10
-
11
- NS_ASSUME_NONNULL_END
@@ -1,7 +0,0 @@
1
- //___FILEHEADER___
2
-
3
- #import "___FILEBASENAME___.h"
4
-
5
- @implementation ___FILEBASENAMEASIDENTIFIER___
6
-
7
- @end
@@ -1,7 +0,0 @@
1
- //___FILEHEADER___
2
-
3
- import UIKit
4
-
5
- class ___FILEBASENAMEASIDENTIFIER___: ___VARIABLE_cocoaTouchSubclass___ {
6
-
7
- }
@@ -1,11 +0,0 @@
1
- //___FILEHEADER___
2
-
3
- ___IMPORTHEADER_cocoaTouchSubclass___
4
-
5
- NS_ASSUME_NONNULL_BEGIN
6
-
7
- @interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___
8
-
9
- @end
10
-
11
- NS_ASSUME_NONNULL_END