Skip to content

Commit

Permalink
Merge pull request #1 from pfpack/feature/func
Browse files Browse the repository at this point in the history
core-func/release/v2.0.0-preview.1.0.1
  • Loading branch information
pmosk authored Nov 21, 2021
2 parents bf35a76 + 42ffd82 commit 7360481
Show file tree
Hide file tree
Showing 573 changed files with 82 additions and 30,189 deletions.
119 changes: 3 additions & 116 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: .NET

on:
push:
branches: [ master, dev, dev/*, feature/*, fix/*, release/* ]
branches: [ main, dev, dev/*, feature/*, fix/*, release/* ]

pull_request:
branches: [ master ]
branches: [ main ]

release:
types: [ published ]
branches: [ master ]
branches: [ main ]

jobs:
build:
Expand All @@ -32,23 +32,6 @@ jobs:
- name: Add Local Nuget Source
run: dotnet nuget add source ~/nuget

# Unit

- name: Restore Unit
run: dotnet restore ./src/*/*/Unit.csproj

- name: Build Unit
run: dotnet build ./src/*/*/Unit.csproj --no-restore -c Release

- name: Pack Unit
run: dotnet pack ./src/*/*/Unit.csproj --no-restore -o ~/nuget -c Release

- name: Restore Unit.Tests
run: dotnet restore ./src/*/*/Unit.Tests.csproj

- name: Test Unit.Tests
run: dotnet test ./src/*/*/Unit.Tests.csproj --no-restore -c Release

# Func.Abstractions.Async

- name: Restore Func.Abstractions.Async
Expand Down Expand Up @@ -167,102 +150,6 @@ jobs:
- name: Pack Func.Extensions
run: dotnet pack ./src/*/*/Func.Extensions.csproj --no-restore -o ~/nuget -c Release

# Failure

- name: Restore Failure
run: dotnet restore ./src/*/*/Failure.csproj

- name: Build Failure
run: dotnet build ./src/*/*/Failure.csproj --no-restore -c Release

- name: Pack Failure
run: dotnet pack ./src/*/*/Failure.csproj --no-restore -o ~/nuget -c Release

- name: Restore Failure.Tests
run: dotnet restore ./src/*/*/Failure.Tests.csproj

- name: Test Failure.Tests
run: dotnet test ./src/*/*/Failure.Tests.csproj --no-restore -c Release

# Optional

- name: Restore Optional
run: dotnet restore ./src/*/*/Optional.csproj

- name: Build Optional
run: dotnet build ./src/*/*/Optional.csproj --no-restore -c Release

- name: Pack Optional
run: dotnet pack ./src/*/*/Optional.csproj --no-restore -o ~/nuget -c Release

- name: Restore Optional.Tests
run: dotnet restore ./src/*/*/Optional.Tests.csproj

- name: Test Optional.Tests
run: dotnet test ./src/*/*/Optional.Tests.csproj --no-restore -c Release

# TaggedUnion

- name: Restore TaggedUnion
run: dotnet restore ./src/*/*/TaggedUnion.csproj

- name: Build TaggedUnion
run: dotnet build ./src/*/*/TaggedUnion.csproj --no-restore -c Release

- name: Pack TaggedUnion
run: dotnet pack ./src/*/*/TaggedUnion.csproj --no-restore -o ~/nuget -c Release

- name: Restore TaggedUnion.Tests
run: dotnet restore ./src/*/*/TaggedUnion.Tests.csproj

- name: Test TaggedUnion.Tests
run: dotnet test ./src/*/*/TaggedUnion.Tests.csproj --no-restore -c Release

# Result

- name: Restore Result
run: dotnet restore ./src/*/*/Result.csproj

- name: Build Result
run: dotnet build ./src/*/*/Result.csproj --no-restore -c Release

- name: Pack Result
run: dotnet pack ./src/*/*/Result.csproj --no-restore -o ~/nuget -c Release

- name: Restore Result.Tests
run: dotnet restore ./src/*/*/Result.Tests.csproj

- name: Test Result.Tests
run: dotnet test ./src/*/*/Result.Tests.csproj --no-restore -c Release

# Taggeds

- name: Restore Taggeds
run: dotnet restore ./src/*/*/Taggeds.csproj

- name: Build Taggeds
run: dotnet build ./src/*/*/Taggeds.csproj --no-restore -c Release

- name: Pack Taggeds
run: dotnet pack ./src/*/*/Taggeds.csproj --no-restore -o ~/nuget -c Release

- name: Restore Taggeds.Tests
run: dotnet restore ./src/*/*/Taggeds.Tests.csproj

- name: Test Taggeds.Tests
run: dotnet test ./src/*/*/Taggeds.Tests.csproj --no-restore -c Release

# Core

- name: Restore Core
run: dotnet restore ./src/*/*/Core.csproj

- name: Build Core
run: dotnet build ./src/*/*/Core.csproj --no-restore -c Release

- name: Pack Core
run: dotnet pack ./src/*/*/Core.csproj --no-restore -o ~/nuget -c Release

# Push

- name: Push Packages
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ PublishScripts/
*.nuget.targets

# Nuget personal access tokens and Credentials
nuget.config
# nuget.config

# Microsoft Azure Build Output
csx/
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# PrimeFuncPack Core - A Functional Programming Framework for .NET
# PrimeFuncPack Core.Func

PrimeFuncPack Core.Func is a core library set for .NET consisting of functional interfaces (SAM interfaces) and the extensions targeted for use in functional programming.
There are both asynchronous (Task and ValueTask based) and synchronous interfaces and the extensions in the set - IAsyncFunc/IAsyncValueFunc and IFunc.
The Core.Func is shipped as a part of PrimeFuncPack Core - a functional programming framework for .NET

PrimeFuncPack Core is a functional programming pack for .NET consisting of the fundamentals:
- Optional and Result monads, Failure type, Tagged Union, and Unit type;
- Functional interfaces (Single Abstract Method interfaces);
- as well as the useful extensions.
- as well as extensions such as the Optional Linq, the SAM interfaces factories, etc.

The Pack supports both asynchronous and synchronous programming models.
7 changes: 7 additions & 0 deletions docs/core-func-abs-async/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@

PrimeFuncPack Core.Func.Abstractions.Async is a core library for .NET consisting of IAsyncFunc asynchronous Task based functional interfaces (SAM interface) targeted for use in functional programming.
The Core.Func is shipped as a part of PrimeFuncPack Core - a functional programming framework for .NET

PrimeFuncPack Core is a functional programming pack for .NET consisting of the fundamentals:
- Optional and Result monads, Failure type, Tagged Union, and Unit type;
- Functional interfaces (Single Abstract Method interfaces);
- as well as extensions such as the Optional Linq, the SAM interfaces factories, etc.

The Pack supports both asynchronous and synchronous programming models.
7 changes: 7 additions & 0 deletions docs/core-func-abs-asyncvalue/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@

PrimeFuncPack Core.Func.Abstractions.AsyncValue is a core library for .NET consisting of IAsyncValueFunc asynchronous ValueTask based functional interfaces (SAM interface) targeted for use in functional programming.
The Core.Func is shipped as a part of PrimeFuncPack Core - a functional programming framework for .NET

PrimeFuncPack Core is a functional programming pack for .NET consisting of the fundamentals:
- Optional and Result monads, Failure type, Tagged Union, and Unit type;
- Functional interfaces (Single Abstract Method interfaces);
- as well as extensions such as the Optional Linq, the SAM interfaces factories, etc.

The Pack supports both asynchronous and synchronous programming models.
7 changes: 7 additions & 0 deletions docs/core-func-abs-sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@

PrimeFuncPack Core.Func.Abstractions.Sync is a core library for .NET consisting of IFunc synchronous functional interfaces (SAM interface) targeted for use in functional programming.
The Core.Func is shipped as a part of PrimeFuncPack Core - a functional programming framework for .NET

PrimeFuncPack Core is a functional programming pack for .NET consisting of the fundamentals:
- Optional and Result monads, Failure type, Tagged Union, and Unit type;
- Functional interfaces (Single Abstract Method interfaces);
- as well as extensions such as the Optional Linq, the SAM interfaces factories, etc.

The Pack supports both asynchronous and synchronous programming models.
7 changes: 7 additions & 0 deletions docs/core-func-abs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@

PrimeFuncPack Core.Func.Abstractions is a core library for .NET consisting of functional interfaces (SAM interfaces) targeted for use in functional programming - IAsyncFunc/IAsyncValueFunc and IFunc, both asynchronous (Task and ValueTask based) and synchronous.
The Core.Func is shipped as a part of PrimeFuncPack Core - a functional programming framework for .NET

PrimeFuncPack Core is a functional programming pack for .NET consisting of the fundamentals:
- Optional and Result monads, Failure type, Tagged Union, and Unit type;
- Functional interfaces (Single Abstract Method interfaces);
- as well as extensions such as the Optional Linq, the SAM interfaces factories, etc.

The Pack supports both asynchronous and synchronous programming models.
7 changes: 7 additions & 0 deletions docs/core-func-ext-async/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@

PrimeFuncPack Core.Func.Extensions.Async is a core library for .NET consisting of extensions for IAsyncFunc asynchronous Task based functional interface (SAM interface) targeted for use in functional programming.
The Core.Func is shipped as a part of PrimeFuncPack Core - a functional programming framework for .NET

PrimeFuncPack Core is a functional programming pack for .NET consisting of the fundamentals:
- Optional and Result monads, Failure type, Tagged Union, and Unit type;
- Functional interfaces (Single Abstract Method interfaces);
- as well as extensions such as the Optional Linq, the SAM interfaces factories, etc.

The Pack supports both asynchronous and synchronous programming models.
7 changes: 7 additions & 0 deletions docs/core-func-ext-asyncvalue/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@

PrimeFuncPack Core.Func.Extensions.AsyncValue is a core library for .NET consisting of extensions for IAsyncValueFunc asynchronous ValueTask based functional interface (SAM interface) targeted for use in functional programming.
The Core.Func is shipped as a part of PrimeFuncPack Core - a functional programming framework for .NET

PrimeFuncPack Core is a functional programming pack for .NET consisting of the fundamentals:
- Optional and Result monads, Failure type, Tagged Union, and Unit type;
- Functional interfaces (Single Abstract Method interfaces);
- as well as extensions such as the Optional Linq, the SAM interfaces factories, etc.

The Pack supports both asynchronous and synchronous programming models.
7 changes: 7 additions & 0 deletions docs/core-func-ext-sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@

PrimeFuncPack Core.Func.Extensions.Sync is a core library for .NET consisting of extensions for IFunc synchronous functional interface (SAM interface) targeted for use in functional programming.
The Core.Func is shipped as a part of PrimeFuncPack Core - a functional programming framework for .NET

PrimeFuncPack Core is a functional programming pack for .NET consisting of the fundamentals:
- Optional and Result monads, Failure type, Tagged Union, and Unit type;
- Functional interfaces (Single Abstract Method interfaces);
- as well as extensions such as the Optional Linq, the SAM interfaces factories, etc.

The Pack supports both asynchronous and synchronous programming models.
7 changes: 7 additions & 0 deletions docs/core-func-ext/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@

PrimeFuncPack Core.Func.Extensions is a core library for .NET consisting of extensions for functional interfaces (SAM interfaces) targeted for use in functional programming - IAsyncFunc/IAsyncValueFunc and IFunc, both asynchronous (Task and ValueTask based) and synchronous.
The Core.Func is shipped as a part of PrimeFuncPack Core - a functional programming framework for .NET

PrimeFuncPack Core is a functional programming pack for .NET consisting of the fundamentals:
- Optional and Result monads, Failure type, Tagged Union, and Unit type;
- Functional interfaces (Single Abstract Method interfaces);
- as well as extensions such as the Optional Linq, the SAM interfaces factories, etc.

The Pack supports both asynchronous and synchronous programming models.
4 changes: 0 additions & 4 deletions docs/core-taggeds-failure/README.md

This file was deleted.

4 changes: 0 additions & 4 deletions docs/core-unit/README.md

This file was deleted.

8 changes: 0 additions & 8 deletions docs/core/README.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
<Nullable>enable</Nullable>
<InvariantGlobalization>true</InvariantGlobalization>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageProjectUrl>https://github.com/pfpack/pfpack-core</PackageProjectUrl>
<RepositoryUrl>https://github.com/pfpack/pfpack-core</RepositoryUrl>
<PackageProjectUrl>https://github.com/pfpack/pfpack-core-func</PackageProjectUrl>
<RepositoryUrl>https://github.com/pfpack/pfpack-core-func</RepositoryUrl>
<Company>pfpack</Company>
<Authors>Andrei Sergeev, Pavel Moskovoy</Authors>
<Copyright>Copyright © 2020-2021 Andrei Sergeev, Pavel Moskovoy</Copyright>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
<Nullable>enable</Nullable>
<InvariantGlobalization>true</InvariantGlobalization>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageProjectUrl>https://github.com/pfpack/pfpack-core</PackageProjectUrl>
<RepositoryUrl>https://github.com/pfpack/pfpack-core</RepositoryUrl>
<PackageProjectUrl>https://github.com/pfpack/pfpack-core-func</PackageProjectUrl>
<RepositoryUrl>https://github.com/pfpack/pfpack-core-func</RepositoryUrl>
<Company>pfpack</Company>
<Authors>Andrei Sergeev, Pavel Moskovoy</Authors>
<Copyright>Copyright © 2020-2021 Andrei Sergeev, Pavel Moskovoy</Copyright>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
<Nullable>enable</Nullable>
<InvariantGlobalization>true</InvariantGlobalization>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageProjectUrl>https://github.com/pfpack/pfpack-core</PackageProjectUrl>
<RepositoryUrl>https://github.com/pfpack/pfpack-core</RepositoryUrl>
<PackageProjectUrl>https://github.com/pfpack/pfpack-core-func</PackageProjectUrl>
<RepositoryUrl>https://github.com/pfpack/pfpack-core-func</RepositoryUrl>
<Company>pfpack</Company>
<Authors>Andrei Sergeev, Pavel Moskovoy</Authors>
<Copyright>Copyright © 2020-2021 Andrei Sergeev, Pavel Moskovoy</Copyright>
Expand Down
5 changes: 2 additions & 3 deletions src/core-func-abs/Func.Abstractions/Func.Abstractions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
<Nullable>enable</Nullable>
<InvariantGlobalization>true</InvariantGlobalization>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageProjectUrl>https://github.com/pfpack/pfpack-core</PackageProjectUrl>
<RepositoryUrl>https://github.com/pfpack/pfpack-core</RepositoryUrl>
<PackageProjectUrl>https://github.com/pfpack/pfpack-core-func</PackageProjectUrl>
<RepositoryUrl>https://github.com/pfpack/pfpack-core-func</RepositoryUrl>
<Company>pfpack</Company>
<Authors>Andrei Sergeev, Pavel Moskovoy</Authors>
<Copyright>Copyright © 2020-2021 Andrei Sergeev, Pavel Moskovoy</Copyright>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
<Nullable>enable</Nullable>
<InvariantGlobalization>true</InvariantGlobalization>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageProjectUrl>https://github.com/pfpack/pfpack-core</PackageProjectUrl>
<RepositoryUrl>https://github.com/pfpack/pfpack-core</RepositoryUrl>
<PackageProjectUrl>https://github.com/pfpack/pfpack-core-func</PackageProjectUrl>
<RepositoryUrl>https://github.com/pfpack/pfpack-core-func</RepositoryUrl>
<Company>pfpack</Company>
<Authors>Andrei Sergeev, Pavel Moskovoy</Authors>
<Copyright>Copyright © 2020-2021 Andrei Sergeev, Pavel Moskovoy</Copyright>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
<Nullable>enable</Nullable>
<InvariantGlobalization>true</InvariantGlobalization>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageProjectUrl>https://github.com/pfpack/pfpack-core</PackageProjectUrl>
<RepositoryUrl>https://github.com/pfpack/pfpack-core</RepositoryUrl>
<PackageProjectUrl>https://github.com/pfpack/pfpack-core-func</PackageProjectUrl>
<RepositoryUrl>https://github.com/pfpack/pfpack-core-func</RepositoryUrl>
<Company>pfpack</Company>
<Authors>Andrei Sergeev, Pavel Moskovoy</Authors>
<Copyright>Copyright © 2020-2021 Andrei Sergeev, Pavel Moskovoy</Copyright>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
<Nullable>enable</Nullable>
<InvariantGlobalization>true</InvariantGlobalization>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageProjectUrl>https://github.com/pfpack/pfpack-core</PackageProjectUrl>
<RepositoryUrl>https://github.com/pfpack/pfpack-core</RepositoryUrl>
<PackageProjectUrl>https://github.com/pfpack/pfpack-core-func</PackageProjectUrl>
<RepositoryUrl>https://github.com/pfpack/pfpack-core-func</RepositoryUrl>
<Company>pfpack</Company>
<Authors>Andrei Sergeev, Pavel Moskovoy</Authors>
<Copyright>Copyright © 2020-2021 Andrei Sergeev, Pavel Moskovoy</Copyright>
Expand Down
5 changes: 2 additions & 3 deletions src/core-func-ext/Func.Extensions/Func.Extensions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
<Nullable>enable</Nullable>
<InvariantGlobalization>true</InvariantGlobalization>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageProjectUrl>https://github.com/pfpack/pfpack-core</PackageProjectUrl>
<RepositoryUrl>https://github.com/pfpack/pfpack-core</RepositoryUrl>
<PackageProjectUrl>https://github.com/pfpack/pfpack-core-func</PackageProjectUrl>
<RepositoryUrl>https://github.com/pfpack/pfpack-core-func</RepositoryUrl>
<Company>pfpack</Company>
<Authors>Andrei Sergeev, Pavel Moskovoy</Authors>
<Copyright>Copyright © 2020-2021 Andrei Sergeev, Pavel Moskovoy</Copyright>
Expand Down
Loading

0 comments on commit 7360481

Please sign in to comment.