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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38d402cea1407812e033962407d71bf025e1cde5adac77a2cfa5c9fb91151969
4
- data.tar.gz: e093d36fe9480c78b66071c0a5c49e6cefb9afb6c8569187d150c2aa11652189
3
+ metadata.gz: cd6dad5104a656e2daede1754d1b9dd69d43c3e4f42961461d29a16a22ab629a
4
+ data.tar.gz: 6d05aa5022d3461dd26326f02365846c7235c39db10da79d8f813aea61d6c3ae
5
5
  SHA512:
6
- metadata.gz: 01710b3e78a99deea83fff61099b9c16aa1ccb1d2c4846f47332a204a5cb1dd2488a4465cb70b3b57585e275efc0b4b07e486abf02a13e1fca417dc06fe10a17
7
- data.tar.gz: '094080a742104363063216e1c75b6af0f44b6daa4463862b60a06ed52723688c64ff0666928f27ce27a25572dedd94731e43db4cda33e4be74e7ad1c235598ec'
6
+ metadata.gz: dfb064b4cc7fc23f0f72a134f7f47d94588374230ec3cd48e53b419ded64cfc2738f35dee42ad07057a7a988ec6a9c85a73a04e60d1bbd369c52aab57c5e8e66
7
+ data.tar.gz: 7d0e288e2aa6e47c67c0419cc62a410294c9a74e3f2a11f4d1058166ed07afcd5bfa4e65a0c2d038c121999671f8f48d9becbe1ce6b42bc16a4d5aef0dc109a2
@@ -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")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raykit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.481
4
+ version: 0.0.483
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow