Skip to content

Commit 1234107

Browse files
Merge pull request #196 from TimeWarpEngineering/Cramer/2019-10-27/ReduxToolsOff
Cramer/2019 10 27/redux tools off
2 parents 1787258 + ed8b024 commit 1234107

42 files changed

Lines changed: 405 additions & 69 deletions

Some content is hidden

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

BlazorState.sln

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestApp.Client", "Tests\Tes
2121
EndProject
2222
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "TestApp", "TestApp", "{50D398DD-1384-4FF3-9415-E46F5DC2E79F}"
2323
EndProject
24-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestApp.Shared", "Tests\TestApp\Api\TestApp.Api.csproj", "{9C1235D1-6695-4A82-9FC3-3CA3257E5D7C}"
24+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestApp.Api", "Tests\TestApp\Api\TestApp.Api.csproj", "{9C1235D1-6695-4A82-9FC3-3CA3257E5D7C}"
2525
EndProject
2626
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestApp.Client.Integration.Tests", "Tests\Client.Integration.Tests\TestApp.Client.Integration.Tests.csproj", "{9F7FD8F4-C4B2-4EB4-819B-0DAB95620C24}"
2727
EndProject
28-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestApp.EndToEnd.Tests", "Tests\EndToEnd.Selenium.Tests\TestApp.EndToEnd.Selenium.Tests.csproj", "{31B84505-71FB-4D89-9840-EB0B33F5FB59}"
28+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestApp.EndToEnd.Selenium.Tests", "Tests\EndToEnd.Selenium.Tests\TestApp.EndToEnd.Selenium.Tests.csproj", "{31B84505-71FB-4D89-9840-EB0B33F5FB59}"
2929
EndProject
3030
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestApp.Server.Integration.Tests", "Tests\Server.Integration.Tests\TestApp.Server.Integration.Tests.csproj", "{37FFCA3B-6533-4262-8913-1E62EC0034CA}"
3131
EndProject
@@ -36,47 +36,68 @@ EndProject
3636
Global
3737
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3838
Debug|Any CPU = Debug|Any CPU
39+
ReduxDevToolsEnabled|Any CPU = ReduxDevToolsEnabled|Any CPU
3940
Release|Any CPU = Release|Any CPU
4041
EndGlobalSection
4142
GlobalSection(ProjectConfigurationPlatforms) = postSolution
4243
{DF355720-EA1E-4505-AE68-1D36BD0D4711}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
4344
{DF355720-EA1E-4505-AE68-1D36BD0D4711}.Debug|Any CPU.Build.0 = Debug|Any CPU
45+
{DF355720-EA1E-4505-AE68-1D36BD0D4711}.ReduxDevToolsEnabled|Any CPU.ActiveCfg = DefaultReduxEnabled|Any CPU
46+
{DF355720-EA1E-4505-AE68-1D36BD0D4711}.ReduxDevToolsEnabled|Any CPU.Build.0 = DefaultReduxEnabled|Any CPU
4447
{DF355720-EA1E-4505-AE68-1D36BD0D4711}.Release|Any CPU.ActiveCfg = Release|Any CPU
4548
{DF355720-EA1E-4505-AE68-1D36BD0D4711}.Release|Any CPU.Build.0 = Release|Any CPU
4649
{51173297-32B7-473E-BA34-788B8E022536}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
4750
{51173297-32B7-473E-BA34-788B8E022536}.Debug|Any CPU.Build.0 = Debug|Any CPU
51+
{51173297-32B7-473E-BA34-788B8E022536}.ReduxDevToolsEnabled|Any CPU.ActiveCfg = DefaultReduxEnabled|Any CPU
52+
{51173297-32B7-473E-BA34-788B8E022536}.ReduxDevToolsEnabled|Any CPU.Build.0 = DefaultReduxEnabled|Any CPU
4853
{51173297-32B7-473E-BA34-788B8E022536}.Release|Any CPU.ActiveCfg = Release|Any CPU
4954
{51173297-32B7-473E-BA34-788B8E022536}.Release|Any CPU.Build.0 = Release|Any CPU
5055
{4F2A89FC-EBD8-43F0-8C1E-4DDCEE0B5558}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
5156
{4F2A89FC-EBD8-43F0-8C1E-4DDCEE0B5558}.Debug|Any CPU.Build.0 = Debug|Any CPU
57+
{4F2A89FC-EBD8-43F0-8C1E-4DDCEE0B5558}.ReduxDevToolsEnabled|Any CPU.ActiveCfg = Release|Any CPU
58+
{4F2A89FC-EBD8-43F0-8C1E-4DDCEE0B5558}.ReduxDevToolsEnabled|Any CPU.Build.0 = Release|Any CPU
5259
{4F2A89FC-EBD8-43F0-8C1E-4DDCEE0B5558}.Release|Any CPU.ActiveCfg = Release|Any CPU
5360
{4F2A89FC-EBD8-43F0-8C1E-4DDCEE0B5558}.Release|Any CPU.Build.0 = Release|Any CPU
5461
{C98290C5-6C90-4A36-A561-E96FF367727C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
5562
{C98290C5-6C90-4A36-A561-E96FF367727C}.Debug|Any CPU.Build.0 = Debug|Any CPU
63+
{C98290C5-6C90-4A36-A561-E96FF367727C}.ReduxDevToolsEnabled|Any CPU.ActiveCfg = DefaultReduxEnabled|Any CPU
64+
{C98290C5-6C90-4A36-A561-E96FF367727C}.ReduxDevToolsEnabled|Any CPU.Build.0 = DefaultReduxEnabled|Any CPU
5665
{C98290C5-6C90-4A36-A561-E96FF367727C}.Release|Any CPU.ActiveCfg = Release|Any CPU
5766
{C98290C5-6C90-4A36-A561-E96FF367727C}.Release|Any CPU.Build.0 = Release|Any CPU
5867
{9C1235D1-6695-4A82-9FC3-3CA3257E5D7C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
5968
{9C1235D1-6695-4A82-9FC3-3CA3257E5D7C}.Debug|Any CPU.Build.0 = Debug|Any CPU
69+
{9C1235D1-6695-4A82-9FC3-3CA3257E5D7C}.ReduxDevToolsEnabled|Any CPU.ActiveCfg = DefaultReduxEnabled|Any CPU
70+
{9C1235D1-6695-4A82-9FC3-3CA3257E5D7C}.ReduxDevToolsEnabled|Any CPU.Build.0 = DefaultReduxEnabled|Any CPU
6071
{9C1235D1-6695-4A82-9FC3-3CA3257E5D7C}.Release|Any CPU.ActiveCfg = Release|Any CPU
6172
{9C1235D1-6695-4A82-9FC3-3CA3257E5D7C}.Release|Any CPU.Build.0 = Release|Any CPU
6273
{9F7FD8F4-C4B2-4EB4-819B-0DAB95620C24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
6374
{9F7FD8F4-C4B2-4EB4-819B-0DAB95620C24}.Debug|Any CPU.Build.0 = Debug|Any CPU
75+
{9F7FD8F4-C4B2-4EB4-819B-0DAB95620C24}.ReduxDevToolsEnabled|Any CPU.ActiveCfg = DefaultReduxEnabled|Any CPU
76+
{9F7FD8F4-C4B2-4EB4-819B-0DAB95620C24}.ReduxDevToolsEnabled|Any CPU.Build.0 = DefaultReduxEnabled|Any CPU
6477
{9F7FD8F4-C4B2-4EB4-819B-0DAB95620C24}.Release|Any CPU.ActiveCfg = Release|Any CPU
6578
{9F7FD8F4-C4B2-4EB4-819B-0DAB95620C24}.Release|Any CPU.Build.0 = Release|Any CPU
6679
{31B84505-71FB-4D89-9840-EB0B33F5FB59}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
6780
{31B84505-71FB-4D89-9840-EB0B33F5FB59}.Debug|Any CPU.Build.0 = Debug|Any CPU
81+
{31B84505-71FB-4D89-9840-EB0B33F5FB59}.ReduxDevToolsEnabled|Any CPU.ActiveCfg = DefaultReduxEnabled|Any CPU
82+
{31B84505-71FB-4D89-9840-EB0B33F5FB59}.ReduxDevToolsEnabled|Any CPU.Build.0 = DefaultReduxEnabled|Any CPU
6883
{31B84505-71FB-4D89-9840-EB0B33F5FB59}.Release|Any CPU.ActiveCfg = Release|Any CPU
6984
{31B84505-71FB-4D89-9840-EB0B33F5FB59}.Release|Any CPU.Build.0 = Release|Any CPU
7085
{37FFCA3B-6533-4262-8913-1E62EC0034CA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
7186
{37FFCA3B-6533-4262-8913-1E62EC0034CA}.Debug|Any CPU.Build.0 = Debug|Any CPU
87+
{37FFCA3B-6533-4262-8913-1E62EC0034CA}.ReduxDevToolsEnabled|Any CPU.ActiveCfg = DefaultReduxEnabled|Any CPU
88+
{37FFCA3B-6533-4262-8913-1E62EC0034CA}.ReduxDevToolsEnabled|Any CPU.Build.0 = DefaultReduxEnabled|Any CPU
7289
{37FFCA3B-6533-4262-8913-1E62EC0034CA}.Release|Any CPU.ActiveCfg = Release|Any CPU
7390
{37FFCA3B-6533-4262-8913-1E62EC0034CA}.Release|Any CPU.Build.0 = Release|Any CPU
7491
{26D026AD-762A-4EE9-AC1B-FCE1CF5767E9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
7592
{26D026AD-762A-4EE9-AC1B-FCE1CF5767E9}.Debug|Any CPU.Build.0 = Debug|Any CPU
93+
{26D026AD-762A-4EE9-AC1B-FCE1CF5767E9}.ReduxDevToolsEnabled|Any CPU.ActiveCfg = Debug|Any CPU
94+
{26D026AD-762A-4EE9-AC1B-FCE1CF5767E9}.ReduxDevToolsEnabled|Any CPU.Build.0 = Debug|Any CPU
7695
{26D026AD-762A-4EE9-AC1B-FCE1CF5767E9}.Release|Any CPU.ActiveCfg = Release|Any CPU
7796
{26D026AD-762A-4EE9-AC1B-FCE1CF5767E9}.Release|Any CPU.Build.0 = Release|Any CPU
7897
{1F8DBDA6-780A-414E-8517-E96A1B9536E1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
7998
{1F8DBDA6-780A-414E-8517-E96A1B9536E1}.Debug|Any CPU.Build.0 = Debug|Any CPU
99+
{1F8DBDA6-780A-414E-8517-E96A1B9536E1}.ReduxDevToolsEnabled|Any CPU.ActiveCfg = DefaultReduxEnabled|Any CPU
100+
{1F8DBDA6-780A-414E-8517-E96A1B9536E1}.ReduxDevToolsEnabled|Any CPU.Build.0 = DefaultReduxEnabled|Any CPU
80101
{1F8DBDA6-780A-414E-8517-E96A1B9536E1}.Release|Any CPU.ActiveCfg = Release|Any CPU
81102
{1F8DBDA6-780A-414E-8517-E96A1B9536E1}.Release|Any CPU.Build.0 = Release|Any CPU
82103
EndGlobalSection

Build/BlazorStateMultiStage.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ trigger:
44
pr: none
55

66
variables:
7-
Major: 1
8-
Minor: 1
7+
Major: 2
8+
Minor: 0
99
DotNetSdkVersion: 3.0.100
1010

1111
stages:
@@ -22,13 +22,15 @@ stages:
2222
echo Major:$(Major)
2323
echo Minor:$(Minor)
2424
echo DotNetSdkVersion:$(DotNetSdkVersion)
25+
2526
- task: DotNetCoreCLI@2
26-
displayName: 'Run all the Integration Tests in the repo and gather coverage data'
27+
displayName: 'Run all the Integration Tests in the repo and gather coverage data with redux dev tools enabled'
2728
continueOnError: false
2829
inputs:
2930
command: test
3031
arguments: '-maxcpucount:1 /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:UseSourceLink=true /p:Include="[BlazorState]*"'
3132
projects: '**/*.Integration.Tests/*.csproj'
33+
configuration: 'DefaultReduxEnabled' # the most code coverage when enabled
3234

3335
- task: reportgenerator@4
3436
displayName: 'Test coverage Report Generator'
@@ -46,6 +48,15 @@ stages:
4648
summaryFileLocation: '$(Build.SourcesDirectory)/CodeCoverage/Cobertura.xml'
4749
reportDirectory: '$(Build.SourcesDirectory)/CodeCoverage'
4850

51+
- task: DotNetCoreCLI@2
52+
displayName: 'Run all the Integration Tests in the repo with default options'
53+
continueOnError: false
54+
inputs:
55+
command: test
56+
arguments: '-maxcpucount:1'
57+
projects: '**/*.Integration.Tests/*.csproj'
58+
configuration: 'Debug' # We don't gather code coverage here but want to make sure all tests pass.
59+
4960
- stage: Build_Stage
5061
variables:
5162
Patch: 0
@@ -146,6 +157,7 @@ stages:
146157
command: build
147158
arguments: '-maxcpucount:1 -p:Version=$(Version)'
148159
projects: 'Source/BlazorState/BlazorState.csproj'
160+
configuration: 'Release'
149161

150162
- task: PublishBuildArtifacts@1
151163
displayName: Publish Nuget Artifact

Documentation/Backlog/Todo.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
- [ ] Improve usefulness of ILogger.
22
- [ ] Document all public interfaces
33
- [ ] Check visibility on classes props etc... private public internal etc..
4-
- [ ] Convert js to ts. See Blazor package for example and Logging.
5-
- [ ] Consider splitting Packages for DevTools as production we will not want to deploy that.Blazor-State-ReduxDevTools
4+
- [x] Convert js to ts. See Blazor package for example and Logging.
5+
- [ ] Consider splitting Packages for DevTools as production we will not want to deploy. Blazor-State-ReduxDevTools
66
- [ ] Review TODOs in source
7-
- [ ] Update Samples to latest templates (Samples have been removed the template is the sample)
8-
97
- [ ] CodeMaid Clean all before publish ()
10-
11-
- [ ] Update Source link to the new .net foundation version. https://github.com/dotnet/sourcelink/
12-
138
- [ ] Add documentation on installing Selenium java and chromedriver.exe etc.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Contributing Overview

Documentation/Features.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

Documentation/Features/Features.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
* Oneway Data Flow
2+
* Automatic Subscriptions
3+
* Encapsulated State. Each State exposes its API. Like a micro-site
4+
* Extensible Pipeline
5+
* Auto-clone with ability to override
6+
7+
# Roadmap
8+
* Action Based Cloning. To reduce the size of the clone based on the action.
9+
* Blazor-State DevTools
10+
* Event Stream
11+
* Console and CLI
12+
* Object Inspector
13+
* Middleware Viewer
14+
* Subscriptions Viewer
15+
* IndexedDb/LocalStorage MiddleWare.
16+
* ObjectSpace synchronization with server side Entities.

Documentation/Features/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- name: Features Overview
2+
topicUid: BlazorState:Features.md

Documentation/Migration.md

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
uid: BlazorState:Migration1-2.md
3+
title: Migrate From 1.X to 2.X
4+
---
5+
6+
# Migration
7+
8+
## From 1.X to 2.X
9+
10+
> [!WARNING]
11+
> ReduxDevTools should NOT be enabled in production.
12+
13+
In 1.0 ReduxDevTools were enabled by default, in 2.0 they are disabled by default.
14+
15+
If your code previously used the default to enabled ReduxDevTools you will now need to explicitly enable it as in the following example `ConfigureServices` method inside `Startup.cs`:
16+
17+
```csharp
18+
aServiceCollection.AddBlazorState
19+
(
20+
(aOptions) =>
21+
{
22+
aOptions.UseReduxDevToolsBehavior = true; // Add This Line
23+
aOptions.Assemblies =
24+
new Assembly[]
25+
{
26+
typeof(Startup).GetTypeInfo().Assembly,
27+
};
28+
}
29+
);
30+
```

Documentation/Migrations/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- name: From 1.x to 2.x
2+
topicUid: BlazorState:Migration1-2.md

0 commit comments

Comments
 (0)