raykit 0.0.481 → 0.0.483
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/raykit/auto_setup.rb +7 -0
- data/lib/raykit/dotnet.rb +14 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd6dad5104a656e2daede1754d1b9dd69d43c3e4f42961461d29a16a22ab629a
|
4
|
+
data.tar.gz: 6d05aa5022d3461dd26326f02365846c7235c39db10da79d8f813aea61d6c3ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfb064b4cc7fc23f0f72a134f7f47d94588374230ec3cd48e53b419ded64cfc2738f35dee42ad07057a7a988ec6a9c85a73a04e60d1bbd369c52aab57c5e8e66
|
7
|
+
data.tar.gz: 7d0e288e2aa6e47c67c0419cc62a410294c9a74e3f2a11f4d1058166ed07afcd5bfa4e65a0c2d038c121999671f8f48d9becbe1ce6b42bc16a4d5aef0dc109a2
|
data/lib/raykit/auto_setup.rb
CHANGED
@@ -31,6 +31,13 @@ module Raykit
|
|
31
31
|
Raykit::DotNet::initialize_csharp_blazorserver app
|
32
32
|
end
|
33
33
|
end
|
34
|
+
|
35
|
+
# Blazor server example apps
|
36
|
+
if (defined?(RAYKIT_BLAZORSERVER_EXAMPLE_APPS))
|
37
|
+
RAYKIT_BLAZORSERVER_EXAMPLE_APPS.each do |app|
|
38
|
+
Raykit::DotNet::initialize_csharp_blazorserver_example app
|
39
|
+
end
|
40
|
+
end
|
34
41
|
end
|
35
42
|
end # class AutoSetup
|
36
43
|
end # module Raykit
|
data/lib/raykit/dotnet.rb
CHANGED
@@ -145,6 +145,20 @@ module Raykit
|
|
145
145
|
end
|
146
146
|
end
|
147
147
|
|
148
|
+
# initialize a C# blazor server example application
|
149
|
+
def self.initialize_csharp_blazorserver_example(name)
|
150
|
+
# create the solution
|
151
|
+
puts " creating #{name}.sln" unless File.exist?("#{name}.sln")
|
152
|
+
# create the blazor server application
|
153
|
+
puts " creating examples/#{name}/#{name}.csproj" unless File.exist?("examples/#{name}/#{name}.csproj")
|
154
|
+
PROJECT.run("dotnet new blazorserver -lang C# --name #{name} --output examples/#{name}") unless File.exist?("examples/#{name}/#{name}.csproj")
|
155
|
+
PROJECT.run("dotnet sln #{name}.sln add examples/#{name}/#{name}.csproj") unless File.exist?("examples/#{name}/#{name}.csproj")
|
156
|
+
# generate project folders
|
157
|
+
["Interfaces", "Extensions", "Models", "Components", "Controllers"].each do |folder|
|
158
|
+
FileUtils.mkdir_p("examples/#{name}/#{folder}") unless Dir.exist?("examples/#{name}/#{folder}")
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
148
162
|
def self.get_package_names(filename)
|
149
163
|
package_names = []
|
150
164
|
if File.exist?(filename) && filename.include?(".csproj")
|