Skip to content

Commit

Permalink
Closes #12, Added decent nuget config defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Byrd committed Apr 30, 2017
1 parent 65941aa commit 8e7a6fc
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
8 changes: 7 additions & 1 deletion Content/.template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,11 @@
"shortName": "mini-scaffold",
"sourceName": "MyLib",
// This allows using the `-n` option to create a new directory
"preferNameDirectory": true
"preferNameDirectory": true,
"symbols":{
"githubUsername": {
"type": "parameter",
"replaces":"MyGithubUsername"
}
}
}
2 changes: 1 addition & 1 deletion Content/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

[![NuGet Badge](https://img.shields.io/nuget/vpre/MyLib.svg)](https://www.nuget.org/packages/MyLib/)

[![Travis Badge](https://travis-ci.org/TheAngryByrd/MyLib.svg?branch=master)](https://travis-ci.org/TheAngryByrd/MyLib)
[![Travis Badge](https://travis-ci.org/TheAngryByrd/MyLib.svg?branch=master)](https://travis-ci.org/MyGithubUsername/MyLib)

Does the thing
14 changes: 14 additions & 0 deletions Content/src/MyLib/MyLib.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@
<PropertyGroup>
<TargetFrameworks>netstandard1.6;net45</TargetFrameworks>
</PropertyGroup>

<PropertyGroup>
<Title>MyLib</Title>
<Description>MyLib does the thing!</Description>
<!-- summary is not migrated from project.json, but you can use the <Description> property for that if needed. -->
<PackageTags>f#, fsharp</PackageTags>
<PackageProjectUrl>https://github.com/MyGithubUsername/MyLib</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/MyGithubUsername/MyLib/blob/master/LICENSE.md</PackageLicenseUrl>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<RepositoryType>git</RepositoryType>
<Authors>MyUsername</Authors>
<RepositoryUrl>https://github.com/MyGithubUsername/MyLib</RepositoryUrl>
<!-- owners is not supported in MSBuild -->
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<Optimize>true</Optimize>
<Tailcalls>true</Tailcalls>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dotnet new -i MiniScaffold::*
### Use the new template:

```
dotnet new mini-scaffold -n MyCoolNewLib
dotnet new mini-scaffold -n MyCoolNewLib --githubUsername MyGithubUsername
cd MyCoolNewLib
```

Expand Down

0 comments on commit 8e7a6fc

Please sign in to comment.