Skip to content

Commit 0ed84ae

Browse files
committed
1. refactor ProcessBuildTask
2. change Paramters -> Parameters (Broken change)
1 parent 5a1e225 commit 0ed84ae

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+479
-389
lines changed

README-EN.md

+44-19
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Module: SmartSql.Starter
4646
Author: Ahoo Wang
4747
DataSource:
4848
Name: DbTable
49-
Paramters:
49+
Parameters:
5050
DbName: SmartSqlTestDB
5151
DbProvider: SqlServer
5252
ConnectionString: Data Source=.;Initial Catalog=SmartSqlTestDB;Integrated Security=True
@@ -57,33 +57,33 @@ TemplateEngine:
5757
Output:
5858
Type: File
5959
Path: 'E:\SmartSql-Starter'
60-
Paramters:
60+
Parameters:
6161
DocDir: 'E:\SmartSql-Starter\doc'
6262

6363
# 构建任务
6464
Build:
6565

6666
# ClearDir:
6767
# Type: Clear
68-
# Paramters:
68+
# Parameters:
6969
# Dirs: '.'
7070

7171
MakeDic-Doc:
7272
Type: Process
73-
Paramters:
73+
Parameters:
7474
FileName: powershell
75-
Args: mkdir '{{Project.Paramters.DocDir}}'
75+
Args: mkdir '{{Project.Parameters.DocDir}}'
7676
Copy:
7777
Type: Process
78-
Paramters:
78+
Parameters:
7979
FileName: powershell
80-
Args: cp '{{Project.ConfigPath}}' '{{Project.Paramters.DocDir}}'
80+
Args: cp '{{Project.ConfigPath}}' '{{Project.Parameters.DocDir}}'
8181

8282
Scaffolding:
8383
Type: MultiTemplate
8484
Output:
8585
Path: '.'
86-
Paramters:
86+
Parameters:
8787
Templates: [{Key: 'Sln.cshtml',Output: {Name: '{{Project.Module}}',Extension: '.sln'}},
8888
{Key: "Proj-Entity.cshtml",Output: {Path: 'src/{{Project.Module}}.Entity',Name: '{{Project.Module}}.Entity',Extension: '.csproj'}},
8989
{Key: "Proj-Repository.cshtml",Output: {Path: 'src/{{Project.Module}}.Repository',Name: '{{Project.Module}}.Repository',Extension: '.csproj'}},
@@ -120,24 +120,24 @@ Build:
120120
Table:
121121
Tokenizer:
122122
Type: Default
123-
Paramters:
123+
Parameters:
124124
IgnorePrefix: 'T_'
125125
Delimiter: '_'
126126
Converter:
127127
Type: Pascal
128-
Paramters: { }
128+
Parameters: { }
129129
View:
130130
Tokenizer:
131131
Type: Default
132-
Paramters:
132+
Parameters:
133133
IgnorePrefix: 'V_'
134134
Delimiter: '_'
135135
Converter:
136136
Type: Pascal
137137
Column:
138138
Tokenizer:
139139
Type: Default
140-
Paramters:
140+
Parameters:
141141
Delimiter: '_'
142142
Converter:
143143
Type: Pascal
@@ -157,7 +157,7 @@ Build:
157157
Table:
158158
Tokenizer:
159159
Type: Default
160-
Paramters:
160+
Parameters:
161161
IgnorePrefix: 'T_'
162162
Delimiter: '_'
163163
Converter:
@@ -178,7 +178,7 @@ Build:
178178
Table:
179179
Tokenizer:
180180
Type: Default
181-
Paramters:
181+
Parameters:
182182
IgnorePrefix: 'T_'
183183
Delimiter: '_'
184184
Converter:
@@ -199,7 +199,7 @@ Build:
199199
Table:
200200
Tokenizer:
201201
Type: Default
202-
Paramters:
202+
Parameters:
203203
IgnorePrefix: 'T_'
204204
Delimiter: '_'
205205
Converter:
@@ -219,34 +219,59 @@ Build:
219219
Table:
220220
Tokenizer:
221221
Type: Default
222-
Paramters:
222+
Parameters:
223223
IgnorePrefix: 'T_'
224224
Delimiter: '_'
225225
Converter:
226226
Type: Pascal
227227
View:
228228
Tokenizer:
229229
Type: Default
230-
Paramters:
230+
Parameters:
231231
IgnorePrefix: 'V_'
232232
Delimiter: '_'
233233
Converter:
234234
Type: Pascal
235235
Column:
236236
Tokenizer:
237237
Type: Default
238-
Paramters:
238+
Parameters:
239239
IgnorePrefix: 'T_'
240240
Delimiter: '_'
241241
Converter:
242242
Type: Pascal
243243

244244
ReStore:
245245
Type: Process
246-
Paramters:
246+
Parameters:
247247
FileName: powershell
248248
WorkingDirectory: '{{Project.Output.Path}}'
249249
Args: dotnet restore
250+
251+
# Publish:
252+
# Type: Process
253+
# Parameters:
254+
# FileName: powershell
255+
# WorkingDirectory: '{{Project.Output.Path}}'
256+
# Args: dotnet publish -c Release -o '{{Project.Output.Path}}\publish'
257+
258+
# Run:
259+
# Type: Process
260+
# Parameters:
261+
# FileName: powershell
262+
# WorkingDirectory: '{{Project.Output.Path}}\publish'
263+
# CreateNoWindow: false
264+
# RedirectStandardOutput: false
265+
# RedirectStandardError: false
266+
# WaitForExit: false
267+
# WriteLines: ['dotnet {{Project.Module}}.API.dll']
268+
269+
# RunChrome:
270+
# Type: Process
271+
# Parameters:
272+
# FileName: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
273+
# CreateNoWindow: false
274+
# Args: http://localhost:5000/swagger
250275
```
251276

252277
### Build file parameter overview

README.md

+44-19
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Module: SmartSql.Starter
4646
Author: Ahoo Wang
4747
DataSource:
4848
Name: DbTable
49-
Paramters:
49+
Parameters:
5050
DbName: SmartSqlTestDB
5151
DbProvider: SqlServer
5252
ConnectionString: Data Source=.;Initial Catalog=SmartSqlTestDB;Integrated Security=True
@@ -57,33 +57,33 @@ TemplateEngine:
5757
Output:
5858
Type: File
5959
Path: 'E:\SmartSql-Starter'
60-
Paramters:
60+
Parameters:
6161
DocDir: 'E:\SmartSql-Starter\doc'
6262

6363
# 构建任务
6464
Build:
6565

6666
# ClearDir:
6767
# Type: Clear
68-
# Paramters:
68+
# Parameters:
6969
# Dirs: '.'
7070

7171
MakeDic-Doc:
7272
Type: Process
73-
Paramters:
73+
Parameters:
7474
FileName: powershell
75-
Args: mkdir '{{Project.Paramters.DocDir}}'
75+
Args: mkdir '{{Project.Parameters.DocDir}}'
7676
Copy:
7777
Type: Process
78-
Paramters:
78+
Parameters:
7979
FileName: powershell
80-
Args: cp '{{Project.ConfigPath}}' '{{Project.Paramters.DocDir}}'
80+
Args: cp '{{Project.ConfigPath}}' '{{Project.Parameters.DocDir}}'
8181

8282
Scaffolding:
8383
Type: MultiTemplate
8484
Output:
8585
Path: '.'
86-
Paramters:
86+
Parameters:
8787
Templates: [{Key: 'Sln.cshtml',Output: {Name: '{{Project.Module}}',Extension: '.sln'}},
8888
{Key: "Proj-Entity.cshtml",Output: {Path: 'src/{{Project.Module}}.Entity',Name: '{{Project.Module}}.Entity',Extension: '.csproj'}},
8989
{Key: "Proj-Repository.cshtml",Output: {Path: 'src/{{Project.Module}}.Repository',Name: '{{Project.Module}}.Repository',Extension: '.csproj'}},
@@ -120,24 +120,24 @@ Build:
120120
Table:
121121
Tokenizer:
122122
Type: Default
123-
Paramters:
123+
Parameters:
124124
IgnorePrefix: 'T_'
125125
Delimiter: '_'
126126
Converter:
127127
Type: Pascal
128-
Paramters: { }
128+
Parameters: { }
129129
View:
130130
Tokenizer:
131131
Type: Default
132-
Paramters:
132+
Parameters:
133133
IgnorePrefix: 'V_'
134134
Delimiter: '_'
135135
Converter:
136136
Type: Pascal
137137
Column:
138138
Tokenizer:
139139
Type: Default
140-
Paramters:
140+
Parameters:
141141
Delimiter: '_'
142142
Converter:
143143
Type: Pascal
@@ -157,7 +157,7 @@ Build:
157157
Table:
158158
Tokenizer:
159159
Type: Default
160-
Paramters:
160+
Parameters:
161161
IgnorePrefix: 'T_'
162162
Delimiter: '_'
163163
Converter:
@@ -178,7 +178,7 @@ Build:
178178
Table:
179179
Tokenizer:
180180
Type: Default
181-
Paramters:
181+
Parameters:
182182
IgnorePrefix: 'T_'
183183
Delimiter: '_'
184184
Converter:
@@ -199,7 +199,7 @@ Build:
199199
Table:
200200
Tokenizer:
201201
Type: Default
202-
Paramters:
202+
Parameters:
203203
IgnorePrefix: 'T_'
204204
Delimiter: '_'
205205
Converter:
@@ -219,34 +219,59 @@ Build:
219219
Table:
220220
Tokenizer:
221221
Type: Default
222-
Paramters:
222+
Parameters:
223223
IgnorePrefix: 'T_'
224224
Delimiter: '_'
225225
Converter:
226226
Type: Pascal
227227
View:
228228
Tokenizer:
229229
Type: Default
230-
Paramters:
230+
Parameters:
231231
IgnorePrefix: 'V_'
232232
Delimiter: '_'
233233
Converter:
234234
Type: Pascal
235235
Column:
236236
Tokenizer:
237237
Type: Default
238-
Paramters:
238+
Parameters:
239239
IgnorePrefix: 'T_'
240240
Delimiter: '_'
241241
Converter:
242242
Type: Pascal
243243

244244
ReStore:
245245
Type: Process
246-
Paramters:
246+
Parameters:
247247
FileName: powershell
248248
WorkingDirectory: '{{Project.Output.Path}}'
249249
Args: dotnet restore
250+
251+
# Publish:
252+
# Type: Process
253+
# Parameters:
254+
# FileName: powershell
255+
# WorkingDirectory: '{{Project.Output.Path}}'
256+
# Args: dotnet publish -c Release -o '{{Project.Output.Path}}\publish'
257+
258+
# Run:
259+
# Type: Process
260+
# Parameters:
261+
# FileName: powershell
262+
# WorkingDirectory: '{{Project.Output.Path}}\publish'
263+
# CreateNoWindow: false
264+
# RedirectStandardOutput: false
265+
# RedirectStandardError: false
266+
# WaitForExit: false
267+
# WriteLines: ['dotnet {{Project.Module}}.API.dll']
268+
269+
# RunChrome:
270+
# Type: Process
271+
# Parameters:
272+
# FileName: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
273+
# CreateNoWindow: false
274+
# Args: http://localhost:5000/swagger
250275
```
251276

252277
### 构建文件参数概览

build/version.props

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project>
22
<PropertyGroup>
33
<VersionMajor>2</VersionMajor>
4-
<VersionMinor>1</VersionMinor>
5-
<VersionPatch>10</VersionPatch>
4+
<VersionMinor>2</VersionMinor>
5+
<VersionPatch>0</VersionPatch>
66
<VersionPrefix>$(VersionMajor).$(VersionMinor).$(VersionPatch)</VersionPrefix>
77
</PropertyGroup>
88
</Project>

doc/SmartCode-ETL-ES.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
Author: Ahoo Wang
22
DataSource:
33
Name: Extract
4-
Paramters:
4+
Parameters:
55
DbProvider: PostgreSql
66
ConnectionString: 'Server=localhost;Port=5432;User Id=report;Password=SmartCode; Database=report;'
77
Query: select * from es_sync_product where max_motify_time>@LastMaxModifyTime
88
PKColumn: id
99
AutoIncrement: true
1010
ModifyTime: max_motify_time
1111

12-
Paramters:
12+
Parameters:
1313
ETLCode: SmartCode.ETL.LoadToES
1414
ETLRepository: SQLite
1515

1616
Build:
1717

1818
Transform:
1919
Type: Transform
20-
Paramters:
20+
Parameters:
2121
Script:
2222

2323
LoadToES:
2424
Type: LoadToES
25-
Paramters:
25+
Parameters:
2626
Host: http://es.smartsql.net/
2727
Index: smartsql
2828
Type: product

0 commit comments

Comments
 (0)