Skip to content

Commit 7ba0741

Browse files
author
Daniel James
committed
Applied DX templates
1 parent 350692e commit 7ba0741

6 files changed

Lines changed: 70 additions & 5 deletions

File tree

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language: csharp
2+
3+
os: linux
4+
dist: trusty
5+
sudo: required
6+
dotnet: 2.0.0
7+
8+
script:
9+
- dotnet restore
10+
- dotnet build
11+
- "if [[ $TRAVIS_PULL_REQUEST == 'false' && $TRAVIS_TAG ]]; then
12+
dotnet pack ./DestructureExtensions --configuration Release /p:Version=$TRAVIS_TAG;
13+
nuget push ./DestructureExtensions/bin/Release/*.nupkg -ApiKey $NUGET_API_KEY;
14+
fi"

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ Project maintainers who do not follow or enforce the Code of Conduct in good fai
4343
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
4444

4545
[homepage]: http://contributor-covenant.org
46-
[version]: http://contributor-covenant.org/version/1/4/
46+
[version]: http://contributor-covenant.org/version/1/4/

CONTRIBUTING.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Contributing
2+
3+
We are committed to fostering an open and welcoming environment. Please read our [code of conduct](CODE_OF_CONDUCT.md) before participating in or contributing to this project.
4+
5+
When contributing to this repository, we recommend discussing your feature, bug fix, or other contribution via an issue in this repository. If the change requires direct communication with the maintainers, send an email to daniel@thzinc.com.
6+
7+
## Pull Request Process
8+
9+
1. Fork this repository
10+
2. Make the changes as you wish
11+
3. Submit a pull request back to this repository with a reference to the issue
12+
13+
### Process for Maintainers
14+
15+
1. Ensure that at least one maintainer reviewer has reviewed and approved the pull request
16+
2. Ensure that pull requests pass all applicable tests and successfully build the project
17+
3. Merge the pull request, and if applicable, clean up any merged branch

DestructureExtensions.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<PackageProjectUrl>https://github.com/thzinc/DestructureExtensions</PackageProjectUrl>
1212
<RepositoryUrl>https://github.com/thzinc/DestructureExtensions</RepositoryUrl>
1313
<PackageTags>c#,c#7,destructure,destructuring,sugar</PackageTags>
14+
<Version>0.0.0</Version>
1415
</PropertyGroup>
1516

1617
</Project>

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

README.md

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# DestructureExtensions
22

3-
[![NuGet](https://img.shields.io/nuget/v/DestructureExtensions.svg)](https://www.nuget.org/packages/DestructureExtensions/)
4-
53
Destructuring extension methods for awesome C#
64

7-
# Quickstart
5+
## Quickstart
86

97
In C# 7.0:
108

@@ -19,3 +17,38 @@ var (first, _, third, rest) = stringToSplit.Split(',');
1917
// third == "bam"
2018
// rest == IEnumerable<string> containing "baz"
2119
```
20+
21+
## Building
22+
23+
[![Travis](https://img.shields.io/travis/thzinc/DestructureExtensions.svg)](https://travis-ci.org/thzinc/DestructureExtensions)
24+
[![NuGet](https://img.shields.io/nuget/v/DestructureExtensions.svg)](https://www.nuget.org/packages/DestructureExtensions/)
25+
[![NuGet Pre Release](https://img.shields.io/nuget/vpre/DestructureExtensions.svg)](https://www.nuget.org/packages/DestructureExtensions/)
26+
27+
Ensure you have [installed .NET Core](https://www.microsoft.com/net/core)
28+
29+
To build a local/development NuGet package, run the following:
30+
31+
```bash
32+
dotnet restore
33+
dotnet build
34+
dotnet pack
35+
```
36+
37+
This will produce `bin/Debug/DestructureExtensions.0.0.0.nupkg`.
38+
39+
## Code of Conduct
40+
41+
We are committed to fostering an open and welcoming environment. Please read our [code of conduct](CODE_OF_CONDUCT.md) before participating in or contributing to this project.
42+
43+
## Contributing
44+
45+
We welcome contributions and collaboration on this project. Please read our [contributor's guide](CONTRIBUTING.md) to understand how best to work with us.
46+
47+
## License and Authors
48+
49+
[![Daniel James logo](https://secure.gravatar.com/avatar/eaeac922b9f3cc9fd18cb9629b9e79f6.png?size=16) Daniel James](http://thzinc.com)
50+
51+
[![license](https://img.shields.io/github/license/thzinc/DestructureExtensions.svg)](https://github.com/thzinc/DestructureExtensions/blob/master/LICENSE)
52+
[![GitHub contributors](https://img.shields.io/github/contributors/thzinc/DestructureExtensions.svg)](https://github.com/thzinc/DestructureExtensions/graphs/contributors)
53+
54+
This software is made available by Daniel James under the MIT license.

0 commit comments

Comments
 (0)