Skip to content

Commit e80d35d

Browse files
initial release
0 parents  commit e80d35d

Some content is hidden

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

44 files changed

+3123
-0
lines changed

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.vs/
2+
.vscode/
3+
.fake/
4+
.paket/
5+
.output/
6+
.idea/
7+
.ionide/
8+
paket-files/
9+
packages/
10+
11+
**/bin/
12+
**/obj/
13+
14+
BenchmarkDotNet.Artifacts/
15+
16+
.secrets.cfg
17+
*.snk
18+
19+
*.bak

.secrets.example.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[nuget]
2+
accessKey=...
3+
4+
[github]
5+
user=...
6+
token=...

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## 0.0.1 (2020/09/21)
2+
* ADDED: Base64 codec
3+
* ADDED: Base16 codec
4+
* ADDED: ShortGuid

Common.targets

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<Project>
2+
<PropertyGroup>
3+
<Version>0.0.1</Version>
4+
<AssemblyVersion>0.0.1</AssemblyVersion>
5+
<FileVersion>0.0.1</FileVersion>
6+
</PropertyGroup>
7+
<PropertyGroup>
8+
<Product>K4os.Text.BaseX</Product>
9+
<Authors>...</Authors>
10+
<Copyright>...</Copyright>
11+
<Description>...</Description>
12+
<RepositoryUrl>https://.../K4os.Text.BaseX</RepositoryUrl>
13+
</PropertyGroup>
14+
<PropertyGroup>
15+
<!--
16+
<PackageId>K4os.Text.BaseX</PackageId>
17+
<PackageTags>...</PackageTags>
18+
<PackageLicenseUrl>https://.../LICENSE</PackageLicenseUrl>
19+
<PackageProjectUrl>https://.../K4os.Text.BaseX</PackageProjectUrl>
20+
<PackageIconUrl>https://.../K4os.Text.BaseX/icon.png</PackageIconUrl>
21+
-->
22+
</PropertyGroup>
23+
<ItemGroup>
24+
<None Remove="*.?sproj.DotSettings" />
25+
</ItemGroup>
26+
</Project>

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017 Milosz Krajewski
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# K4os.Text.BaseX
2+
3+
[![NuGet Stats](https://img.shields.io/nuget/v/K4os.Text.BaseX.svg)](https://www.nuget.org/packages/K4os.Text.BaseX)
4+
5+
# Usage
6+
7+
TBD
8+
9+
# Build
10+
11+
```shell
12+
paket install
13+
fake build
14+
```

Signing.targets

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Project>
2+
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
3+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
4+
</PropertyGroup>
5+
<PropertyGroup Condition=" '$(Configuration)' == 'Release' and Exists('../../K4os.Text.BaseX.snk')">
6+
<SignAssembly>true</SignAssembly>
7+
<AssemblyOriginatorKeyFile>../../K4os.Text.BaseX.snk</AssemblyOriginatorKeyFile>
8+
</PropertyGroup>
9+
</Project>

build.fsx

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
#r "paket:
2+
nuget Fake.Core.Target
3+
nuget Fake.Core.ReleaseNotes
4+
nuget Fake.IO.FileSystem
5+
nuget Fake.IO.Zip
6+
nuget Fake.Api.GitHub
7+
nuget Fake.DotNet.MSBuild
8+
nuget Fake.DotNet.Cli
9+
nuget Fake.DotNet.Testing.XUnit2
10+
//"
11+
12+
#load "build.imports.fsx"
13+
#load "build.tools.fsx"
14+
15+
open Fake.IO
16+
open Fake.IO.Globbing.Operators
17+
open Fake.IO.FileSystemOperators
18+
open Fake.Core
19+
open Fake.Api
20+
21+
open Tools
22+
23+
let solutions = Proj.settings |> Config.keys "Build"
24+
let packages = Proj.settings |> Config.keys "Pack"
25+
26+
let clean () = !! "**/bin/" ++ "**/obj/" |> Shell.deleteDirs
27+
let build () = solutions |> Proj.buildMany
28+
let restore () = solutions |> Proj.restoreMany
29+
let test () = Proj.testAll ()
30+
let release () = packages |> Proj.packMany
31+
let publish apiKey = packages |> Seq.iter (Proj.publishNugetOrg apiKey)
32+
33+
Target.create "Refresh" (fun _ ->
34+
// Proj.regenerateStrongName "K4os.Text.BaseX.snk"
35+
Proj.updateCommonTargets "Common.targets"
36+
)
37+
38+
Target.create "Clean" (fun _ -> clean ())
39+
40+
Target.create "Restore" (fun _ -> restore ())
41+
42+
Target.create "Build" (fun _ -> build ())
43+
44+
Target.create "Rebuild" ignore
45+
46+
Target.create "Release" (fun _ -> release ())
47+
48+
Target.create "Test" (fun p ->
49+
if p.Context.Arguments |> List.contains "notest"
50+
then Log.warn "Ignoring tests"
51+
else test ()
52+
)
53+
54+
Target.create "Release:Nuget" (fun _ ->
55+
Proj.settings |> Config.valueOrFail "nuget" "accessKey" |> publish
56+
)
57+
58+
Target.create "Release:GitHub" (fun _ ->
59+
let user = Proj.settings |> Config.valueOrFail "github" "user"
60+
let token = Proj.settings |> Config.valueOrFail "github" "token"
61+
let repository = Proj.settings |> Config.keys "Repository" |> Seq.exactlyOne
62+
!! (Proj.outputFolder @@ (sprintf "*.%s.nupkg" Proj.productVersion))
63+
|> Proj.publishGitHub repository user token
64+
)
65+
66+
open Fake.Core.TargetOperators
67+
68+
"Refresh" ==> "Restore" ==> "Build" ==> "Rebuild" ==> "Test" ==> "Release"
69+
"Release" ==> "Release:GitHub" ==> "Release:Nuget"
70+
"Clean" ==> "Rebuild"
71+
72+
"Clean" ?=> "Restore"
73+
"Build" ?=> "Test"
74+
75+
Target.runOrDefaultWithArguments "Build"

0 commit comments

Comments
 (0)