Skip to content

Commit 24d230c

Browse files
TheAngryByrdbaronfel
authored andcommitted
Console app (#105)
* add console flag to template * Update credits * mono 5.12 added to matrix * Add json schema for the content file * Add retryInCI to dotnet-restore
1 parent fe05aad commit 24d230c

Some content is hidden

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

73 files changed

+3372
-50
lines changed

.travis.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,21 @@ language: csharp
22
sudo: required
33
dist: trusty
44

5-
dotnet: 2.1.301
5+
dotnet: 2.1.401
66
mono:
77
- 5.12.0
8+
- 5.14.0
89
- latest # => "stable release"
910
- alpha
1011
- beta
1112
- weekly # => "latest commits"
1213
os:
1314
- linux
1415

15-
addons:
16-
apt:
17-
packages:
18-
- dotnet-sharedframework-microsoft.netcore.app-1.1.2
16+
# addons:
17+
# apt:
18+
# packages:
19+
# - dotnet-sharedframework-microsoft.netcore.app-1.1.2
1920

2021
script:
2122
- ./build.sh
Lines changed: 46 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
2+
"$schema": "http://json.schemastore.org/template",
23
"author": "Jimmy Byrd",
3-
"classifications": ["Scaffold"],
4+
"classifications": [
5+
"Scaffold"
6+
],
47
"name": "MiniScaffold",
58
"tags": {
69
"language": "F#"
@@ -14,18 +17,49 @@
1417
"githubUsername": {
1518
"type": "parameter",
1619
"replaces": "MyGithubUsername"
20+
},
21+
"outputType": {
22+
"type": "parameter",
23+
"dataType": "choice",
24+
"defaultValue": "library",
25+
"choices": [
26+
{
27+
"choice": "library",
28+
"description": "Creates a template for library projects"
29+
},
30+
{
31+
"choice": "console",
32+
"description": "Creates a template for console projects"
33+
}
34+
]
1735
}
1836
},
19-
"postActions": [{
20-
"condition": "(OS != \"Windows_NT\")",
21-
"description": "Make scripts executable",
22-
"manualInstructions": [{
23-
"text": "Run 'chmod +x *.sh'"
24-
}],
25-
"actionId": "cb9a6cf3-4f5c-4860-b9d2-03a574959774",
26-
"args": {
27-
"+x": "*.sh"
37+
"sources": [
38+
{
39+
"source": "./Library/",
40+
"target": "./",
41+
"condition": "(outputType == \"library\")",
2842
},
29-
"continueOnError": true
30-
}]
43+
{
44+
"source": "./Console/",
45+
"target": "./",
46+
"condition": "(outputType == \"console\")",
47+
}
48+
],
49+
"postActions": [
50+
{
51+
"condition": "(OS != \"Windows_NT\")",
52+
"description": "Make scripts executable",
53+
"manualInstructions": [
54+
{
55+
"text": "Run 'chmod +x *.sh'"
56+
}
57+
],
58+
"actionId": "cb9a6cf3-4f5c-4860-b9d2-03a574959774",
59+
"args": {
60+
"+x": "*.sh"
61+
},
62+
"continueOnError": true
63+
}
64+
]
3165
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Content/.travis.yml renamed to Content/Console/.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ language: csharp
22
sudo: required
33
dist: trusty
44

5-
dotnet: 2.1.301
5+
dotnet: 2.1.401
66
mono:
7-
- 5.12.0
7+
- 5.14.0
88
- latest # => "stable release"
99
- alpha
1010
- beta
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Content/appveyor.yml renamed to Content/Console/appveyor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ version: 0.0.1.{build}
77
artifacts:
88
- path: bin
99
name: bin
10+
- path: dist
11+
name: dist
File renamed without changes.

0 commit comments

Comments
 (0)