minke-generator-netmvc 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YWUyZWM3ZDlhMDZjY2RkZGNiZGNlYzVhNmE3MzY2MjVhZDQ5NzYzNw==
4
+ NGI2ZWI2NjgxNDVkMWQ1ZjNkZDg0M2M5MDQwYWJkOWQ0ZjUxNzJlMA==
5
5
  data.tar.gz: !binary |-
6
- YTk1NmM4YWVjY2ZkMzI2NWNhZTJlNjE1NmNhZDY5N2VkMWRhMTkwOA==
6
+ YTEzOTdkYWE0NzJjNDA0MTIxNmMyMTI4YmQxMTVmM2ZhMjFhZjdhMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjllMGQwOThkYjEzZDFkYmRmODE4NWFkNDAxODBkZjIyOTg0MDZiMGQ0YzZh
10
- ZTNhMmJhZDE0MGFlM2JlMDA5ZDY5Y2I5YzUwNmRhMzZlMzM1OWEwYmEzYjNh
11
- MWVkYzRlMzBlYmJjNmE5NWEzNmM5ZGE5M2YxODEwMWUyZWFjMWY=
9
+ OWIyMjZmNjE2ZWUwOTkyNzYwNDVmYTI1ZGRlMjA1OTI3MDhjZGVkNGFmYTgy
10
+ MGQ1MmI0MTU4NGEwNTUyMDlhOTYyY2E4ZWUwNTM1YWJkN2EwODE5MTcyYjk2
11
+ ZjU5M2I0YjQ2ZDliYThjYjhkMTgwNTMyMGI5MGU2Y2ZmYTFlMWU=
12
12
  data.tar.gz: !binary |-
13
- ZDk5YTlmZjkwYjQzZjM0NjIxZTM0NTlmNTVhNTFiYTJmMTk0NDFkMmMyZmU3
14
- NThjYTM0MTAzMWYzZjkxNDlkNGI2YmI5MTI2ZjYxMTc3N2FhZWE2NjIzOGNl
15
- YmMzZGViNWQzYjVmNjFmMDJlNGJmMTBkMzFhZDkwYmMyOWY3NWU=
13
+ YjJlYjMwMjYyODY0MzE4NDlhNmQ4Y2JhYTdkZWZmYjJjYjIyNTkwNmEyMDI1
14
+ ZmQzZTU4ODRmMDJmOWI3Y2JjMDg3OWVkNWZjZDM3OTk0ZjBiZmQ4YzRlZWU4
15
+ MDVlNGVmMmJiNGQ5MWQyNzlkNGRjZjVjMTlmZGE4MmZhNTlhMTM=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- minke-generator-netmvc (0.10.0)
4
+ minke-generator-netmvc (0.12.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,11 +1,17 @@
1
- /<%= application_name %>
2
- /bin
3
- /obj
4
- .DS_Store
1
+ # Application binaries
2
+ /src/<%= application_name %>/bin
3
+ /src/<%= application_name %>/obj
4
+ /test/<%= application_name %>.Tests/bin
5
+ /test/<%= application_name %>.Tests/obj
5
6
  /.nuget
7
+
8
+ # Application build assets
6
9
  /_build/dockerfile/<%= application_name %>/bin
7
10
  /_build/dockerfile/<%= application_name %>/swagger_spec
8
11
  /_build/dockerfile/<%= application_name %>/swagger_spec
9
12
  /_build/dockerfile/<%= application_name %>/project.json
10
13
  /_build/dockerfile/<%= application_name %>/project.lock.json
11
14
  /_build/dockerfile/<%= application_name %>/web.config
15
+
16
+ # Pesky mac files
17
+ .DS_Store
@@ -6,7 +6,7 @@
6
6
  "type": "coreclr",
7
7
  "request": "launch",
8
8
  "preLaunchTask": "build",
9
- "program": "${workspaceRoot}/bin/Debug/netcoreapp1.0/<%= application_name %>.dll",
9
+ "program": "${workspaceRoot}/src/<%= application_name %>/bin/Debug/netcoreapp1.0/<%= application_name %>.dll",
10
10
  "args": [],
11
11
  "cwd": "${workspaceRoot}",
12
12
  "stopAtEntry": false
@@ -16,7 +16,7 @@
16
16
  "type": "coreclr",
17
17
  "request": "launch",
18
18
  "preLaunchTask": "build",
19
- "program": "${workspaceRoot}/bin/Debug/netcoreapp1.0/<%= application_name %>.dll",
19
+ "program": "${workspaceRoot}/src/<%= application_name %>/bin/Debug/netcoreapp1.0/<%= application_name %>.dll",
20
20
  "args": [],
21
21
  "cwd": "${workspaceRoot}",
22
22
  "stopAtEntry": false,
@@ -8,10 +8,16 @@
8
8
  "tasks": [
9
9
  {
10
10
  "taskName": "build",
11
- "args": [ ],
11
+ "args": ["./src/<%= application_name %>"],
12
12
  "isBuildCommand": true,
13
13
  "showOutput": "silent",
14
14
  "problemMatcher": "$msCompile"
15
+ },
16
+ {
17
+ "taskName": "test",
18
+ "args": ["./test/<%= application_name %>.Tests"],
19
+ "isBuildCommand": false,
20
+ "problemMatcher": "$msCompile"
15
21
  }
16
22
  ]
17
- }
23
+ }
@@ -13,17 +13,19 @@ docker:
13
13
  application_compose_file: './dockercompose/<%= application_name %>/docker-compose.yml'
14
14
  fetch:
15
15
  enabled: true
16
+ test:
17
+ enabled: true
16
18
  build:
17
19
  post:
18
20
  copy:
19
21
  -
20
- from: '../bin'
22
+ from: '../src/<%= application_name %>/bin'
21
23
  to: './dockerfile/<%= application_name %>'
22
24
  -
23
- from: '../project.json'
25
+ from: '../src/<%= application_name %>/project.json'
24
26
  to: './dockerfile/<%= application_name %>'
25
27
  -
26
- from: '../web.config'
28
+ from: '../src/<%= application_name %>/web.config'
27
29
  to: './dockerfile/<%= application_name %>'
28
30
  -
29
31
  from: './swagger_spec/swagger.yml'
@@ -0,0 +1,6 @@
1
+ {
2
+ "projects": [ "src", "test" ],
3
+ "sdk": {
4
+ "version": "1.0.0-rc2-*"
5
+ }
6
+ }
@@ -1,4 +1,6 @@
1
1
  {
2
+ "description": "<%= application_name %> iPad api on ASP.NET MVC 6",
3
+ "version": "1.0.0",
2
4
  "dependencies": {
3
5
  "Microsoft.NETCore.App": {
4
6
  "version": "1.0.0-rc2-3002702",
@@ -0,0 +1,15 @@
1
+ using <%= namespace %>.Controllers;
2
+ using Xunit;
3
+
4
+ namespace TestNamespace.Controllers
5
+ {
6
+ public class TestHealthController
7
+ {
8
+ [Fact]
9
+ public void ThisWillPass()
10
+ {
11
+ var controller = new HealthController();
12
+ Assert.True(true);
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "<%= application_name %>.test",
3
+ "version": "1.0.0-*",
4
+ "buildOptions": {
5
+ "warningsAsErrors": true
6
+ },
7
+ "frameworks": {
8
+ "netcoreapp1.0": {
9
+ "imports": [ "dnxcore50", "portable-net45+win8" ],
10
+ "dependencies": {
11
+ "xunit": "2.1.0",
12
+ "dotnet-test-xunit": "1.0.0-rc2-build10015"
13
+ }
14
+ }
15
+ },
16
+ "dependencies": {
17
+ "<%= application_name %>": "1.*"
18
+ },
19
+ "testRunner": "xunit",
20
+ "runtimes": {
21
+ "ubuntu.14.04-x64": { },
22
+ "centos.7.1-x64": { },
23
+ "debian.8-x64": { },
24
+ "win7-x64": { },
25
+ "win81-x64": { },
26
+ "win10-x64": { },
27
+ "osx.10.11-x64": { }
28
+ }
29
+ }
@@ -1,7 +1,7 @@
1
1
  module Minke
2
2
  module Generators
3
3
  module NetMVC
4
- VERSION = "0.12.0"
4
+ VERSION = "0.13.0"
5
5
  end
6
6
  end
7
7
  end
@@ -14,9 +14,9 @@ module Minke
14
14
  config.build_settings = Minke::Generators::BuildSettings.new
15
15
 
16
16
  config.build_settings.build_commands = Minke::Generators::BuildCommands.new.tap do |bc|
17
- bc.fetch = [['/bin/bash', '-c', 'dotnet restore --packages .nuget']]
18
- bc.test = [['/bin/bash', '-c', 'NUGET_PACKAGES=.nuget dotnet test']]
19
- bc.build = [['/bin/bash', '-c', 'rm -rf bin && rm -rf obj && NUGET_PACKAGES=.nuget dotnet build -c Release']]
17
+ bc.fetch = [['/bin/bash', '-c', 'dotnet restore --packages /<%= application_name %>/.nuget ./test/<%= application_name %>.Tests && dotnet restore --packages /<%= application_name %>/.nuget ./src/<%= application_name %>']]
18
+ bc.test = [['/bin/bash', '-c', 'NUGET_PACKAGES=/<%= application_name %>/.nuget dotnet test ./test/<%= application_name %>.Tests']]
19
+ bc.build = [['/bin/bash', '-c', 'rm -rf ./src/<%= application_name %>/bin && rm -rf ./src/<%= application_name %>/obj && NUGET_PACKAGES=/<%= application_name %>/.nuget dotnet build ./src/<%= application_name %> -c Release']]
20
20
  end
21
21
 
22
22
  config.build_settings.docker_settings = Minke::Generators::DockerSettings.new.tap do |bs|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minke-generator-netmvc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nic Jackson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-22 00:00:00.000000000 Z
11
+ date: 2016-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -75,12 +75,8 @@ files:
75
75
  - lib/generators/netmvc.rb
76
76
  - lib/generators/netmvc/scaffold/.gitignore.erb
77
77
  - lib/generators/netmvc/scaffold/.vscode/launch.json.erb
78
- - lib/generators/netmvc/scaffold/.vscode/tasks.json
79
- - lib/generators/netmvc/scaffold/Controllers/HealthController.cs.erb
80
- - lib/generators/netmvc/scaffold/Program.cs.erb
81
- - lib/generators/netmvc/scaffold/Properties/launchSettings.json
78
+ - lib/generators/netmvc/scaffold/.vscode/tasks.json.erb
82
79
  - lib/generators/netmvc/scaffold/README.md
83
- - lib/generators/netmvc/scaffold/Startup.cs.erb
84
80
  - lib/generators/netmvc/scaffold/_build/.gitignore
85
81
  - lib/generators/netmvc/scaffold/_build/.ruby-gemset.erb
86
82
  - lib/generators/netmvc/scaffold/_build/.ruby-version
@@ -102,9 +98,16 @@ files:
102
98
  - lib/generators/netmvc/scaffold/_build/features/steps/http.rb
103
99
  - lib/generators/netmvc/scaffold/_build/features/support/env.rb.erb
104
100
  - lib/generators/netmvc/scaffold/_build/swagger_spec/swagger.yml.erb
105
- - lib/generators/netmvc/scaffold/appsettings.json
106
- - lib/generators/netmvc/scaffold/project.json.erb
107
- - lib/generators/netmvc/scaffold/web.config
101
+ - lib/generators/netmvc/scaffold/global.json
102
+ - lib/generators/netmvc/scaffold/src/<%= application_name %>/Controllers/HealthController.cs.erb
103
+ - lib/generators/netmvc/scaffold/src/<%= application_name %>/Program.cs.erb
104
+ - lib/generators/netmvc/scaffold/src/<%= application_name %>/Properties/launchSettings.json
105
+ - lib/generators/netmvc/scaffold/src/<%= application_name %>/Startup.cs.erb
106
+ - lib/generators/netmvc/scaffold/src/<%= application_name %>/appsettings.json
107
+ - lib/generators/netmvc/scaffold/src/<%= application_name %>/project.json.erb
108
+ - lib/generators/netmvc/scaffold/src/<%= application_name %>/web.config
109
+ - lib/generators/netmvc/scaffold/test/<%= application_name %>.Tests/Controllers/HealthControllerTest.cs.erb
110
+ - lib/generators/netmvc/scaffold/test/<%= application_name %>.Tests/project.json.erb
108
111
  - lib/generators/netmvc/version.rb
109
112
  - minke-generator-netmvc.gemspec
110
113
  homepage: https://github.com/nicholasjackson/minkie-generator-netmvc