makit 0.0.0 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +22 -22
- data/CHANGELOG.md +8 -8
- data/CODE_OF_CONDUCT.md +84 -84
- data/Rakefile +20 -10
- data/examples/rake_default/Rakefile +1 -0
- data/lib/makit/command_runner.rb +4 -4
- data/lib/makit/content/default_gitignore.txt +222 -222
- data/lib/makit/directory.rb +1 -1
- data/lib/makit/dotnet.rb +62 -3
- data/lib/makit/mp/project_mp.rb +77 -88
- data/lib/makit/mp/string_mp.rb +5 -5
- data/lib/makit/tasks.rb +7 -3
- data/lib/makit/v1/makit.v1.proto +2 -2
- data/lib/makit/v1/makit.v1_pb.rb +1 -1
- data/lib/makit/v1/makit.v1_services_pb.rb +3 -4
- data/lib/makit/version.rb +1 -1
- data/lib/makit/wix.rb +4 -1
- data/lib/makit.rb +1 -1
- data/sig/makit.rbs +4 -4
- metadata +6 -6
@@ -1,222 +1,222 @@
|
|
1
|
-
# General
|
2
|
-
[Aa]rtifacts/
|
3
|
-
[Ii]ntermediate/
|
4
|
-
[Gg]enerated/
|
5
|
-
third_party/
|
6
|
-
|
7
|
-
# Ruby
|
8
|
-
*.gem
|
9
|
-
*.rbc
|
10
|
-
/.config
|
11
|
-
/coverage/
|
12
|
-
/InstalledFiles
|
13
|
-
/pkg/
|
14
|
-
/spec/reports/
|
15
|
-
/spec/examples.txt
|
16
|
-
/test/tmp/
|
17
|
-
/test/version_tmp/
|
18
|
-
/tmp/
|
19
|
-
/.yardoc/
|
20
|
-
/_yardoc/
|
21
|
-
/doc/
|
22
|
-
/rdoc/
|
23
|
-
/.bundle/
|
24
|
-
/vendor/bundle
|
25
|
-
/lib/bundler/man/
|
26
|
-
.rvmrc
|
27
|
-
|
28
|
-
# Rust
|
29
|
-
/target/
|
30
|
-
Cargo.lock
|
31
|
-
**/*.rs.bk
|
32
|
-
/target
|
33
|
-
/Cargo.lock
|
34
|
-
|
35
|
-
# DotNet
|
36
|
-
*.rsuser
|
37
|
-
*.suo
|
38
|
-
*.user
|
39
|
-
*.userosscache
|
40
|
-
*.sln.docstates
|
41
|
-
*.txt
|
42
|
-
*.userprefs
|
43
|
-
BenchmarkDotNet.Artifacts/
|
44
|
-
[Dd]ebug/
|
45
|
-
[Dd]ebugPublic/
|
46
|
-
[Rr]elease/
|
47
|
-
[Rr]eleases/
|
48
|
-
x64/
|
49
|
-
x86/
|
50
|
-
[Aa][Rr][Mm]/
|
51
|
-
[Aa][Rr][Mm]64/
|
52
|
-
bld/
|
53
|
-
[Bb]in/
|
54
|
-
[Oo]bj/
|
55
|
-
[Ll]og/
|
56
|
-
[Aa]rtifacts/
|
57
|
-
.vs/
|
58
|
-
Generated\ Files/
|
59
|
-
[Tt]est[Rr]esult*/
|
60
|
-
[Bb]uild[Ll]og.*
|
61
|
-
*.VisualState.xml
|
62
|
-
TestResult.xml
|
63
|
-
[Dd]ebugPS/
|
64
|
-
[Rr]eleasePS/
|
65
|
-
dlldata.c
|
66
|
-
BenchmarkDotNet.Artifacts/
|
67
|
-
|
68
|
-
project.lock.json
|
69
|
-
project.fragment.lock.json
|
70
|
-
artifacts/
|
71
|
-
StyleCopReport.xml
|
72
|
-
*_i.c
|
73
|
-
*_p.c
|
74
|
-
*_h.h
|
75
|
-
*.ilk
|
76
|
-
*.meta
|
77
|
-
*.obj
|
78
|
-
*.iobj
|
79
|
-
*.pch
|
80
|
-
*.pdb
|
81
|
-
*.ipdb
|
82
|
-
*.pgc
|
83
|
-
*.pgd
|
84
|
-
*.rsp
|
85
|
-
*.sbr
|
86
|
-
*.tlb
|
87
|
-
*.tli
|
88
|
-
*.tlh
|
89
|
-
*.tmp
|
90
|
-
*.tmp_proj
|
91
|
-
*_wpftmp.csproj
|
92
|
-
*.log
|
93
|
-
*.vspscc
|
94
|
-
*.vssscc
|
95
|
-
.builds
|
96
|
-
*.pidb
|
97
|
-
*.svclog
|
98
|
-
*.scc
|
99
|
-
_Chutzpah*
|
100
|
-
ipch/
|
101
|
-
*.aps
|
102
|
-
*.ncb
|
103
|
-
*.opendb
|
104
|
-
*.opensdf
|
105
|
-
*.sdf
|
106
|
-
*.cachefile
|
107
|
-
*.VC.db
|
108
|
-
*.VC.VC.opendb
|
109
|
-
*.psess
|
110
|
-
*.vsp
|
111
|
-
*.vspx
|
112
|
-
*.sap
|
113
|
-
*.e2e
|
114
|
-
$tf/
|
115
|
-
*.gpState
|
116
|
-
_ReSharper*/
|
117
|
-
*.[Rr]e[Ss]harper
|
118
|
-
*.DotSettings.user
|
119
|
-
.JustCode
|
120
|
-
_TeamCity*
|
121
|
-
*.dotCover
|
122
|
-
.axoCover/*
|
123
|
-
!.axoCover/settings.json
|
124
|
-
*.coverage
|
125
|
-
*.coveragexml
|
126
|
-
_NCrunch_*
|
127
|
-
.*crunch*.local.xml
|
128
|
-
nCrunchTemp_*
|
129
|
-
*.mm.*
|
130
|
-
AutoTest.Net/
|
131
|
-
.sass-cache/
|
132
|
-
[Ee]xpress/
|
133
|
-
DocProject/buildhelp/
|
134
|
-
DocProject/Help/*.HxT
|
135
|
-
DocProject/Help/*.HxC
|
136
|
-
DocProject/Help/*.hhc
|
137
|
-
DocProject/Help/*.hhk
|
138
|
-
DocProject/Help/*.hhp
|
139
|
-
DocProject/Help/Html2
|
140
|
-
DocProject/Help/html
|
141
|
-
publish/
|
142
|
-
*.[Pp]ublish.xml
|
143
|
-
*.azurePubxml
|
144
|
-
*.pubxml
|
145
|
-
*.publishproj
|
146
|
-
PublishScripts/
|
147
|
-
*.nupkg
|
148
|
-
**/[Pp]ackages/*
|
149
|
-
!**/[Pp]ackages/build/
|
150
|
-
*.nuget.props
|
151
|
-
*.nuget.targets
|
152
|
-
csx/
|
153
|
-
*.build.csdef
|
154
|
-
ecf/
|
155
|
-
rcf/
|
156
|
-
AppPackages/
|
157
|
-
BundleArtifacts/
|
158
|
-
Package.StoreAssociation.xml
|
159
|
-
_pkginfo.txt
|
160
|
-
*.appx
|
161
|
-
*.[Cc]ache
|
162
|
-
# but keep track of directories ending in .cache
|
163
|
-
!*.[Cc]ache/
|
164
|
-
ClientBin/
|
165
|
-
~$*
|
166
|
-
*~
|
167
|
-
*.dbmdl
|
168
|
-
*.dbproj.schemaview
|
169
|
-
*.jfm
|
170
|
-
*.pfx
|
171
|
-
*.publishsettings
|
172
|
-
orleans.codegen.cs
|
173
|
-
**/wwwroot/lib/
|
174
|
-
Generated_Code/
|
175
|
-
_UpgradeReport_Files/
|
176
|
-
Backup*/
|
177
|
-
UpgradeLog*.XML
|
178
|
-
UpgradeLog*.htm
|
179
|
-
ServiceFabricBackup/
|
180
|
-
*.rptproj.bak
|
181
|
-
*.mdf
|
182
|
-
*.ldf
|
183
|
-
*.ndf
|
184
|
-
*.rdl.data
|
185
|
-
*.bim.layout
|
186
|
-
*.bim_*.settings
|
187
|
-
*.rptproj.rsuser
|
188
|
-
FakesAssemblies/
|
189
|
-
*.GhostDoc.xml
|
190
|
-
.ntvs_analysis.dat
|
191
|
-
node_modules/
|
192
|
-
*.plg
|
193
|
-
*.opt
|
194
|
-
*.vbw
|
195
|
-
**/*.HTMLClient/GeneratedArtifacts
|
196
|
-
**/*.DesktopClient/GeneratedArtifacts
|
197
|
-
**/*.DesktopClient/ModelManifest.xml
|
198
|
-
**/*.Server/GeneratedArtifacts
|
199
|
-
**/*.Server/ModelManifest.xml
|
200
|
-
_Pvt_Extensions
|
201
|
-
.paket/paket.exe
|
202
|
-
paket-files/
|
203
|
-
.fake/
|
204
|
-
.idea/
|
205
|
-
*.sln.iml
|
206
|
-
.cr/personal
|
207
|
-
__pycache__/
|
208
|
-
*.pyc
|
209
|
-
tools/**
|
210
|
-
!tools/packages.config
|
211
|
-
*.tss
|
212
|
-
*.jmconfig
|
213
|
-
*.btp.cs
|
214
|
-
*.btm.cs
|
215
|
-
*.odx.cs
|
216
|
-
*.xsd.cs
|
217
|
-
OpenCover/
|
218
|
-
ASALocalRun/
|
219
|
-
*.binlog
|
220
|
-
*.nvuser
|
221
|
-
.mfractor/
|
222
|
-
.localhistory/
|
1
|
+
# General
|
2
|
+
[Aa]rtifacts/
|
3
|
+
[Ii]ntermediate/
|
4
|
+
[Gg]enerated/
|
5
|
+
third_party/
|
6
|
+
|
7
|
+
# Ruby
|
8
|
+
*.gem
|
9
|
+
*.rbc
|
10
|
+
/.config
|
11
|
+
/coverage/
|
12
|
+
/InstalledFiles
|
13
|
+
/pkg/
|
14
|
+
/spec/reports/
|
15
|
+
/spec/examples.txt
|
16
|
+
/test/tmp/
|
17
|
+
/test/version_tmp/
|
18
|
+
/tmp/
|
19
|
+
/.yardoc/
|
20
|
+
/_yardoc/
|
21
|
+
/doc/
|
22
|
+
/rdoc/
|
23
|
+
/.bundle/
|
24
|
+
/vendor/bundle
|
25
|
+
/lib/bundler/man/
|
26
|
+
.rvmrc
|
27
|
+
|
28
|
+
# Rust
|
29
|
+
/target/
|
30
|
+
Cargo.lock
|
31
|
+
**/*.rs.bk
|
32
|
+
/target
|
33
|
+
/Cargo.lock
|
34
|
+
|
35
|
+
# DotNet
|
36
|
+
*.rsuser
|
37
|
+
*.suo
|
38
|
+
*.user
|
39
|
+
*.userosscache
|
40
|
+
*.sln.docstates
|
41
|
+
*.txt
|
42
|
+
*.userprefs
|
43
|
+
BenchmarkDotNet.Artifacts/
|
44
|
+
[Dd]ebug/
|
45
|
+
[Dd]ebugPublic/
|
46
|
+
[Rr]elease/
|
47
|
+
[Rr]eleases/
|
48
|
+
x64/
|
49
|
+
x86/
|
50
|
+
[Aa][Rr][Mm]/
|
51
|
+
[Aa][Rr][Mm]64/
|
52
|
+
bld/
|
53
|
+
[Bb]in/
|
54
|
+
[Oo]bj/
|
55
|
+
[Ll]og/
|
56
|
+
[Aa]rtifacts/
|
57
|
+
.vs/
|
58
|
+
Generated\ Files/
|
59
|
+
[Tt]est[Rr]esult*/
|
60
|
+
[Bb]uild[Ll]og.*
|
61
|
+
*.VisualState.xml
|
62
|
+
TestResult.xml
|
63
|
+
[Dd]ebugPS/
|
64
|
+
[Rr]eleasePS/
|
65
|
+
dlldata.c
|
66
|
+
BenchmarkDotNet.Artifacts/
|
67
|
+
|
68
|
+
project.lock.json
|
69
|
+
project.fragment.lock.json
|
70
|
+
artifacts/
|
71
|
+
StyleCopReport.xml
|
72
|
+
*_i.c
|
73
|
+
*_p.c
|
74
|
+
*_h.h
|
75
|
+
*.ilk
|
76
|
+
*.meta
|
77
|
+
*.obj
|
78
|
+
*.iobj
|
79
|
+
*.pch
|
80
|
+
*.pdb
|
81
|
+
*.ipdb
|
82
|
+
*.pgc
|
83
|
+
*.pgd
|
84
|
+
*.rsp
|
85
|
+
*.sbr
|
86
|
+
*.tlb
|
87
|
+
*.tli
|
88
|
+
*.tlh
|
89
|
+
*.tmp
|
90
|
+
*.tmp_proj
|
91
|
+
*_wpftmp.csproj
|
92
|
+
*.log
|
93
|
+
*.vspscc
|
94
|
+
*.vssscc
|
95
|
+
.builds
|
96
|
+
*.pidb
|
97
|
+
*.svclog
|
98
|
+
*.scc
|
99
|
+
_Chutzpah*
|
100
|
+
ipch/
|
101
|
+
*.aps
|
102
|
+
*.ncb
|
103
|
+
*.opendb
|
104
|
+
*.opensdf
|
105
|
+
*.sdf
|
106
|
+
*.cachefile
|
107
|
+
*.VC.db
|
108
|
+
*.VC.VC.opendb
|
109
|
+
*.psess
|
110
|
+
*.vsp
|
111
|
+
*.vspx
|
112
|
+
*.sap
|
113
|
+
*.e2e
|
114
|
+
$tf/
|
115
|
+
*.gpState
|
116
|
+
_ReSharper*/
|
117
|
+
*.[Rr]e[Ss]harper
|
118
|
+
*.DotSettings.user
|
119
|
+
.JustCode
|
120
|
+
_TeamCity*
|
121
|
+
*.dotCover
|
122
|
+
.axoCover/*
|
123
|
+
!.axoCover/settings.json
|
124
|
+
*.coverage
|
125
|
+
*.coveragexml
|
126
|
+
_NCrunch_*
|
127
|
+
.*crunch*.local.xml
|
128
|
+
nCrunchTemp_*
|
129
|
+
*.mm.*
|
130
|
+
AutoTest.Net/
|
131
|
+
.sass-cache/
|
132
|
+
[Ee]xpress/
|
133
|
+
DocProject/buildhelp/
|
134
|
+
DocProject/Help/*.HxT
|
135
|
+
DocProject/Help/*.HxC
|
136
|
+
DocProject/Help/*.hhc
|
137
|
+
DocProject/Help/*.hhk
|
138
|
+
DocProject/Help/*.hhp
|
139
|
+
DocProject/Help/Html2
|
140
|
+
DocProject/Help/html
|
141
|
+
publish/
|
142
|
+
*.[Pp]ublish.xml
|
143
|
+
*.azurePubxml
|
144
|
+
*.pubxml
|
145
|
+
*.publishproj
|
146
|
+
PublishScripts/
|
147
|
+
*.nupkg
|
148
|
+
**/[Pp]ackages/*
|
149
|
+
!**/[Pp]ackages/build/
|
150
|
+
*.nuget.props
|
151
|
+
*.nuget.targets
|
152
|
+
csx/
|
153
|
+
*.build.csdef
|
154
|
+
ecf/
|
155
|
+
rcf/
|
156
|
+
AppPackages/
|
157
|
+
BundleArtifacts/
|
158
|
+
Package.StoreAssociation.xml
|
159
|
+
_pkginfo.txt
|
160
|
+
*.appx
|
161
|
+
*.[Cc]ache
|
162
|
+
# but keep track of directories ending in .cache
|
163
|
+
!*.[Cc]ache/
|
164
|
+
ClientBin/
|
165
|
+
~$*
|
166
|
+
*~
|
167
|
+
*.dbmdl
|
168
|
+
*.dbproj.schemaview
|
169
|
+
*.jfm
|
170
|
+
*.pfx
|
171
|
+
*.publishsettings
|
172
|
+
orleans.codegen.cs
|
173
|
+
**/wwwroot/lib/
|
174
|
+
Generated_Code/
|
175
|
+
_UpgradeReport_Files/
|
176
|
+
Backup*/
|
177
|
+
UpgradeLog*.XML
|
178
|
+
UpgradeLog*.htm
|
179
|
+
ServiceFabricBackup/
|
180
|
+
*.rptproj.bak
|
181
|
+
*.mdf
|
182
|
+
*.ldf
|
183
|
+
*.ndf
|
184
|
+
*.rdl.data
|
185
|
+
*.bim.layout
|
186
|
+
*.bim_*.settings
|
187
|
+
*.rptproj.rsuser
|
188
|
+
FakesAssemblies/
|
189
|
+
*.GhostDoc.xml
|
190
|
+
.ntvs_analysis.dat
|
191
|
+
node_modules/
|
192
|
+
*.plg
|
193
|
+
*.opt
|
194
|
+
*.vbw
|
195
|
+
**/*.HTMLClient/GeneratedArtifacts
|
196
|
+
**/*.DesktopClient/GeneratedArtifacts
|
197
|
+
**/*.DesktopClient/ModelManifest.xml
|
198
|
+
**/*.Server/GeneratedArtifacts
|
199
|
+
**/*.Server/ModelManifest.xml
|
200
|
+
_Pvt_Extensions
|
201
|
+
.paket/paket.exe
|
202
|
+
paket-files/
|
203
|
+
.fake/
|
204
|
+
.idea/
|
205
|
+
*.sln.iml
|
206
|
+
.cr/personal
|
207
|
+
__pycache__/
|
208
|
+
*.pyc
|
209
|
+
tools/**
|
210
|
+
!tools/packages.config
|
211
|
+
*.tss
|
212
|
+
*.jmconfig
|
213
|
+
*.btp.cs
|
214
|
+
*.btm.cs
|
215
|
+
*.odx.cs
|
216
|
+
*.xsd.cs
|
217
|
+
OpenCover/
|
218
|
+
ASALocalRun/
|
219
|
+
*.binlog
|
220
|
+
*.nvuser
|
221
|
+
.mfractor/
|
222
|
+
.localhistory/
|
data/lib/makit/directory.rb
CHANGED
@@ -22,7 +22,7 @@ module Makit
|
|
22
22
|
def self.find_directory_with_patterns(starting_directory, patterns)
|
23
23
|
patterns.each do |pattern|
|
24
24
|
result = find_directory_with_pattern(starting_directory, pattern)
|
25
|
-
if(Dir.exist?(result))
|
25
|
+
if (Dir.exist?(result))
|
26
26
|
return result
|
27
27
|
end
|
28
28
|
end
|
data/lib/makit/dotnet.rb
CHANGED
@@ -8,9 +8,68 @@ module Makit
|
|
8
8
|
`dotnet --version`
|
9
9
|
end
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
def self.new_project(template, name, output)
|
12
|
+
if Dir.exist? output
|
13
|
+
puts " #{output}".colorize(:green) + " exists.".colorize(:grey)
|
14
|
+
#puts "Directory #{output} already exists".colorize(:yellow)
|
15
|
+
else
|
16
|
+
"dotnet new #{template} --name #{name} --output #{output}".run
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.add_package(project_path, package_name)
|
21
|
+
project_content = File.read(project_path)
|
22
|
+
if (!project_content.include?("\"#{package_name}\""))
|
23
|
+
"dotnet add #{project_path} package #{package_name}".run
|
24
|
+
else
|
25
|
+
puts " package ".colorize(:grey) + "#{package_name}".colorize(:yellow) + " is in ".colorize(:grey) + "#{project_path}".colorize(:yellow)
|
26
|
+
#puts "Package #{package_name} already exists in #{project_path}".colorize(:yellow)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.add_reference(project_path, reference_path)
|
31
|
+
project_content = File.read(project_path)
|
32
|
+
if(project_content.include?("<PackageReference Include=\"#{package}\""))
|
33
|
+
puts " reference ".colorize(:grey) + "#{reference_path}".colorize(:yellow) + " is in ".colorize(:grey) + "#{project_path}".colorize(:yellow)
|
34
|
+
else
|
35
|
+
"dotnet add #{project_path} reference #{reference_path}".run
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
def self.new_solution(name)
|
40
|
+
if File.exist? "#{name}.sln"
|
41
|
+
#puts "Solution #{name}.sln already exists".colorize(:yellow)
|
42
|
+
puts " #{name}.sln".colorize(:green) + " exists".colorize(:grey)
|
43
|
+
else
|
44
|
+
"dotnet new sln --name #{name}".run
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
def self.build(project_path, configuration = "Release", output="artifacts")
|
49
|
+
project_dir = File.dirname(project_path)
|
50
|
+
# determine the most recent file change date of the files tracked by git that are in the project directory
|
51
|
+
git_last_commit_date = `git -C #{project_dir} log -1 --format=%cd --date=iso`.strip
|
52
|
+
# determine the most recent file change data of the files in the output directory (not tracked by git)
|
53
|
+
output_last_commit_date = `git -C #{output} log -1 --format=%cd --date=iso`.strip
|
54
|
+
"dotnet build #{project_path} --configuration #{configuration} --output #{output}".run
|
55
|
+
end
|
56
|
+
|
57
|
+
def self.sln_add_projects(sln_name)
|
58
|
+
if !File.exist? "#{sln_name}.sln"
|
59
|
+
raise "Solution #{sln_name}.sln does not exist"
|
60
|
+
else
|
61
|
+
sln_path = "#{sln_name}.sln"
|
62
|
+
sln_content = File.read(sln_path)
|
63
|
+
Dir.glob("#{sln_path}/**/*.csproj").each do |project_path|
|
64
|
+
project_name = File.basename(project_path, ".csproj")
|
65
|
+
if (sln_content.include?("\"#{project_name}\""))
|
66
|
+
puts " #{project_name}".colorize(:green) + " is in ".colorize(:grey) + "#{sln_path}".colorize(:green)
|
67
|
+
#puts "Project #{project_name} already exists in #{sln_path}".colorize(:yellow)
|
68
|
+
else
|
69
|
+
"dotnet sln #{sln_path} add #{project_path}".run
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
14
73
|
end
|
15
74
|
end # class DotNet
|
16
75
|
end # module Makit
|