@@ -58,7 +58,8 @@ Output:
58
58
Type : File
59
59
Path : ' E:\SmartSql-Starter'
60
60
Parameters :
61
- DocDir : ' E:\SmartSql-Starter\doc'
61
+ BuildDir : ' E:\SmartSql-Starter\build'
62
+ DockerImage : ' smartsql.starter'
62
63
63
64
# 构建任务
64
65
Build :
@@ -68,23 +69,27 @@ Build:
68
69
# Parameters:
69
70
# Dirs: '.'
70
71
71
- MakeDic-Doc :
72
+ MakeBuildDir :
72
73
Type : Process
73
74
Parameters :
74
75
FileName : powershell
75
- Args : mkdir '{{Project.Parameters.DocDir }}'
76
+ Args : mkdir '{{Project.Parameters.BuildDir }}'
76
77
Copy :
77
78
Type : Process
78
79
Parameters :
79
80
FileName : powershell
80
- Args : cp '{{Project.ConfigPath}}' '{{Project.Parameters.DocDir }}'
81
+ Args : cp '{{Project.ConfigPath}}' '{{Project.Parameters.BuildDir }}'
81
82
82
83
Scaffolding :
83
84
Type : MultiTemplate
84
85
Output :
85
86
Path : ' .'
86
87
Parameters :
87
88
Templates : [{Key: 'Sln.cshtml',Output: {Name: '{{Project.Module}}',Extension: '.sln'}},
89
+ {Key: 'Sln-Directory.Build.cshtml',Output: {Name: 'Directory.Build',Extension: '.props'}},
90
+ {Key: 'Sln-Version.cshtml',Output: {Path: 'build',Name: 'version',Extension: '.props'}},
91
+ {Key: 'Sln-Dockerfile.cshtml',Output: {Name: 'Dockerfile',Extension: ''}},
92
+ {Key: 'Sln-DockerIgnore.cshtml',Output: {Name: '.dockerignore',Extension: ''}},
88
93
{Key: "Proj-Entity.cshtml",Output: {Path: 'src/{{Project.Module}}.Entity',Name: '{{Project.Module}}.Entity',Extension: '.csproj'}},
89
94
{Key: "Proj-Repository.cshtml",Output: {Path: 'src/{{Project.Module}}.Repository',Name: '{{Project.Module}}.Repository',Extension: '.csproj'}},
90
95
{Key: "Proj-Service.cshtml",Output: {Path: 'src/{{Project.Module}}.Service',Name: '{{Project.Module}}.Service',Extension: '.csproj'}},
@@ -104,8 +109,7 @@ Build:
104
109
{Key: "API/QueryByPageResponse.cshtml",Output: {Path: 'src/{{Project.Module}}.API/Messages',Name: 'QueryByPageResponse',Extension: '.cs'}},
105
110
{Key: "API/ResponseMessage.cshtml",Output: {Path: 'src/{{Project.Module}}.API/Messages',Name: 'ResponseMessage',Extension: '.cs'}},
106
111
{Key: "SqlMapConfig.cshtml",Output: {Path: 'src/{{Project.Module}}.Repository',Name: 'SmartSqlMapConfig',Extension: '.xml'}},
107
- {Key: "SqlMapConfig.cshtml",Output: {Path: 'src/{{Project.Module}}.Repository',Name: 'SmartSqlMapConfig.Development',Extension: '.xml'}}
108
- ]
112
+ {Key: "SqlMapConfig.cshtml",Output: {Path: 'src/{{Project.Module}}.Repository',Name: 'SmartSqlMapConfig.Development',Extension: '.xml'}}]
109
113
110
114
Entity :
111
115
Type : Table
@@ -248,6 +252,20 @@ Build:
248
252
WorkingDirectory : ' {{Project.Output.Path}}'
249
253
Args : dotnet restore
250
254
255
+ # BuildDocker:
256
+ # Type: Process
257
+ # Parameters:
258
+ # FileName: powershell
259
+ # WorkingDirectory: '{{Project.Output.Path}}'
260
+ # Args: docker build -t {{Project.Parameters.DockerImage}}:v1.0.0 .
261
+
262
+ # RunDocker:
263
+ # Type: Process
264
+ # Parameters:
265
+ # FileName: powershell
266
+ # WorkingDirectory: '{{Project.Output.Path}}'
267
+ # Args: docker run --name {{Project.Parameters.DockerImage}} --rm -d -p 8008:80 {{Project.Parameters.DockerImage}}:v1.0.0 .
268
+
251
269
# Publish:
252
270
# Type: Process
253
271
# Parameters:
@@ -271,7 +289,7 @@ Build:
271
289
# Parameters:
272
290
# FileName: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
273
291
# CreateNoWindow: false
274
- # Args: http://localhost:5000 /swagger
292
+ # Args: http://localhost:8008 /swagger
275
293
```
276
294
277
295
### Build file parameter overview
0 commit comments