Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closes #12, Added decent nuget config defaults #13

Merged
merged 1 commit into from
Apr 30, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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