yptools 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yptools/install/yp_install.rb +10 -2
- data/lib/yptools/mgc/yp_makegarbagecode.rb +19 -3
- data/lib/yptools.rb +5 -7
- metadata +2 -66
- data/lib/yptools/install/mvvm/install-template.sh +0 -15
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/NSObjectObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/NSObjectObjective-C/___FILEBASENAME___.m +0 -7
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/NSObjectSwift/___FILEBASENAME___.swift +0 -7
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/TemplateIcon.png +0 -0
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/TemplateIcon@2x.png +0 -0
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/TemplateInfo.plist +0 -224
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewObjective-C/___FILEBASENAME___.m +0 -7
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewSwift/___FILEBASENAME___.swift +0 -7
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBObjective-C/___FILEBASENAME___.m +0 -12
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBObjective-C/___FILEBASENAME___.xib +0 -17
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBSwift/___FILEBASENAME___.swift +0 -12
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBSwift/___FILEBASENAME___.xib +0 -17
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellObjective-C/___FILEBASENAME___.m +0 -7
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellSwift/___FILEBASENAME___.swift +0 -7
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBObjective-C/___FILEBASENAME___.m +0 -12
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBObjective-C/___FILEBASENAME___.xib +0 -21
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBSwift/___FILEBASENAME___.swift +0 -12
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBSwift/___FILEBASENAME___.xib +0 -21
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerObjective-C/___FILEBASENAME___.m +0 -87
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerSwift/___FILEBASENAME___.swift +0 -83
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBObjective-C/___FILEBASENAME___.m +0 -87
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBObjective-C/___FILEBASENAME___.xib +0 -31
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBSwift/___FILEBASENAME___.swift +0 -83
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBSwift/___FILEBASENAME___.xib +0 -31
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellObjective-C/___FILEBASENAME___.m +0 -26
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellSwift/___FILEBASENAME___.swift +0 -18
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.m +0 -18
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.xib +0 -21
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBSwift/___FILEBASENAME___.swift +0 -18
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBSwift/___FILEBASENAME___.xib +0 -21
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerObjective-C/___FILEBASENAME___.m +0 -87
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerSwift/___FILEBASENAME___.swift +0 -84
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBObjective-C/___FILEBASENAME___.m +0 -103
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBObjective-C/___FILEBASENAME___.xib +0 -26
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBSwift/___FILEBASENAME___.swift +0 -84
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBSwift/___FILEBASENAME___.xib +0 -26
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___FILEBASENAME___.m +0 -94
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_Proxy___.h +0 -15
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_Proxy___.m +0 -39
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_TableViewCell___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_TableViewCell___.m +0 -30
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_ViewModel___.h +0 -24
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_ViewModel___.m +0 -51
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerSwift/___FILEBASENAME___.swift +0 -24
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.h +0 -9
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.m +0 -61
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.xib +0 -43
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBSwift/___FILEBASENAME___.swift +0 -24
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBSwift/___FILEBASENAME___.xib +0 -22
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewObjective-C/___FILEBASENAME___.h +0 -11
- data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewObjective-C/___FILEBASENAME___.m +0 -26
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80cfb296536ceed1f676ce004a319bfd15a6c01313301d4c0a62e46b7f33f6e6
|
4
|
+
data.tar.gz: 8f669a0c977a92602af1ea92322a90eb7a399e77a23261ba22dda32db341e00e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08ac954936254dabf088095beead682d2bb60124493b9486bad8b6569aaaff09bb55f90391261abdbf7198ba0d2834b8f6b0ac55e4b7f11682a53cefc1722cc7'
|
7
|
+
data.tar.gz: 93ffd2002a9f7668c93ebb40bd5fc076886b6e4378c37f7f9dc5f009d2a015efed96658c58f32a2c32d61ace3c57aaff8655e23a3676d6f217d08b3d9b7460aa
|
@@ -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
|
-
|
272
|
-
|
273
|
-
|
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
|
-
|
12
|
+
self.help
|
13
13
|
when 'mgc'
|
14
14
|
if argvs.size > 1
|
15
15
|
suffix = argvs[1]
|
16
|
-
|
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
|
-
|
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
|
-
|
30
|
+
self.help
|
33
31
|
end
|
34
32
|
|
35
33
|
end
|
@@ -64,5 +62,5 @@ end
|
|
64
62
|
#
|
65
63
|
|
66
64
|
|
67
|
-
|
65
|
+
YPTools.cmd_dispatch(ARGV)
|
68
66
|
|
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.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- chenghengsheng
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -91,70 +91,6 @@ files:
|
|
91
91
|
- bin/yptools
|
92
92
|
- lib/yptools.rb
|
93
93
|
- lib/yptools/help/yp_help.rb
|
94
|
-
- lib/yptools/install/mvvm/install-template.sh
|
95
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/NSObjectObjective-C/___FILEBASENAME___.h
|
96
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/NSObjectObjective-C/___FILEBASENAME___.m
|
97
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/NSObjectSwift/___FILEBASENAME___.swift
|
98
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/TemplateIcon.png
|
99
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/TemplateIcon@2x.png
|
100
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/TemplateInfo.plist
|
101
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewObjective-C/___FILEBASENAME___.h
|
102
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewObjective-C/___FILEBASENAME___.m
|
103
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewSwift/___FILEBASENAME___.swift
|
104
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBObjective-C/___FILEBASENAME___.h
|
105
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBObjective-C/___FILEBASENAME___.m
|
106
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBObjective-C/___FILEBASENAME___.xib
|
107
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBSwift/___FILEBASENAME___.swift
|
108
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBSwift/___FILEBASENAME___.xib
|
109
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellObjective-C/___FILEBASENAME___.h
|
110
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellObjective-C/___FILEBASENAME___.m
|
111
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellSwift/___FILEBASENAME___.swift
|
112
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBObjective-C/___FILEBASENAME___.h
|
113
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBObjective-C/___FILEBASENAME___.m
|
114
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBObjective-C/___FILEBASENAME___.xib
|
115
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBSwift/___FILEBASENAME___.swift
|
116
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBSwift/___FILEBASENAME___.xib
|
117
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerObjective-C/___FILEBASENAME___.h
|
118
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerObjective-C/___FILEBASENAME___.m
|
119
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerSwift/___FILEBASENAME___.swift
|
120
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBObjective-C/___FILEBASENAME___.h
|
121
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBObjective-C/___FILEBASENAME___.m
|
122
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBObjective-C/___FILEBASENAME___.xib
|
123
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBSwift/___FILEBASENAME___.swift
|
124
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBSwift/___FILEBASENAME___.xib
|
125
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellObjective-C/___FILEBASENAME___.h
|
126
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellObjective-C/___FILEBASENAME___.m
|
127
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellSwift/___FILEBASENAME___.swift
|
128
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.h
|
129
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.m
|
130
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.xib
|
131
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBSwift/___FILEBASENAME___.swift
|
132
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBSwift/___FILEBASENAME___.xib
|
133
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerObjective-C/___FILEBASENAME___.h
|
134
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerObjective-C/___FILEBASENAME___.m
|
135
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerSwift/___FILEBASENAME___.swift
|
136
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBObjective-C/___FILEBASENAME___.h
|
137
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBObjective-C/___FILEBASENAME___.m
|
138
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBObjective-C/___FILEBASENAME___.xib
|
139
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBSwift/___FILEBASENAME___.swift
|
140
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBSwift/___FILEBASENAME___.xib
|
141
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___FILEBASENAME___.h
|
142
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___FILEBASENAME___.m
|
143
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_Proxy___.h
|
144
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_Proxy___.m
|
145
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_TableViewCell___.h
|
146
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_TableViewCell___.m
|
147
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_ViewModel___.h
|
148
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_ViewModel___.m
|
149
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerSwift/___FILEBASENAME___.swift
|
150
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.h
|
151
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.m
|
152
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.xib
|
153
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBSwift/___FILEBASENAME___.swift
|
154
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBSwift/___FILEBASENAME___.xib
|
155
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewObjective-C/___FILEBASENAME___.h
|
156
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewObjective-C/___FILEBASENAME___.m
|
157
|
-
- lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewSwift/___FILEBASENAME___.swift
|
158
94
|
- lib/yptools/install/yp_install.rb
|
159
95
|
- lib/yptools/log/yp_log.rb
|
160
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 🚀"
|
Binary file
|
Binary file
|
@@ -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 <UIKit/UIKit.h></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,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,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>
|