File tree Expand file tree Collapse file tree 9 files changed +76
-16
lines changed
Blazor.Extensions.Storage.JS
Blazor.Extensions.Storage
test/Blazor.Extensions.Storage.Test Expand file tree Collapse file tree 9 files changed +76
-16
lines changed Original file line number Diff line number Diff line change
1
+ queue : ' Hosted VS2017'
2
+
3
+ variables :
4
+ buildConfiguration : ' Release'
5
+
6
+ steps :
7
+ - task : Npm@1
8
+ inputs :
9
+ command : ' install'
10
+ workingDir : src/Blazor.Extensions.Storage.JS
11
+
12
+ - task : DotNetCoreCLI@2
13
+ inputs :
14
+ command : ' build'
15
+ projects : ' **/*.csproj'
16
+ arguments : ' --configuration $(buildConfiguration)'
17
+
18
+ - task : DotNetCoreCLI@2
19
+ inputs :
20
+ command : pack
21
+ packagesToPack : ' src/Blazor.Extensions.Storage/*.csproj'
22
+ configuration : ' $(buildConfiguration)'
23
+ versioningScheme : byPrereleaseNumber
24
+ majorVersion : ' 0'
25
+ minorVersion : ' 1'
26
+ patchVersion : ' 0'
Original file line number Diff line number Diff line change
1
+ queue : ' Hosted VS2017'
2
+
3
+ variables :
4
+ buildConfiguration : ' Release'
5
+
6
+ steps :
7
+ - task : Npm@1
8
+ inputs :
9
+ command : ' install'
10
+ workingDir : src/Blazor.Extensions.Storage.JS
11
+
12
+ - task : DotNetCoreCLI@2
13
+ inputs :
14
+ command : ' build'
15
+ projects : ' **/*.csproj'
16
+ arguments : ' --configuration $(buildConfiguration)'
17
+
18
+ - task : DotNetCoreCLI@2
19
+ inputs :
20
+ command : pack
21
+ packagesToPack : ' src/Blazor.Extensions.Storage/*.csproj'
22
+ packDirectory : ' $(build.artifactStagingDirectory)'
23
+ configuration : ' $(buildConfiguration)'
24
+ versioningScheme : byEnvVar
25
+ versionEnvVar : Version
26
+
27
+ - task : NuGetCommand@2
28
+ inputs :
29
+ command : push
30
+ packagesToPush : ' $(build.artifactStagingDirectory)/*.nupkg'
31
+ publishFeedCredentials : ' BlazorExtensions'
32
+ nuGetFeedType : external
33
+ versioningScheme : byEnvVar
34
+ versionEnvVar : Version
Original file line number Diff line number Diff line change @@ -15,15 +15,15 @@ This package wraps [HTML5 Storage](https://developer.mozilla.org/en-US/docs/Web/
15
15
16
16
## Setup
17
17
18
- The following snippet shows how to setup the storage wrapper by registering it for dependency injection in the ``` Program .cs``` of the application.
18
+ The following snippet shows how to setup the storage wrapper by registering it for dependency injection in the ``` Startup .cs``` of the application.
19
19
20
20
``` c#
21
- var serviceProvider = new BrowserServiceProvider ( services =>
21
+ public void ConfigureServices ( IServiceCollection services )
22
22
{
23
23
// Add Blazor.Extensions.Storage
24
24
// Both SessionStorage and LocalStorage are registered
25
25
services .AddStorage ();
26
- });
26
+ }
27
27
```
28
28
29
29
## Usage
Original file line number Diff line number Diff line change 16
16
</PropertyGroup >
17
17
18
18
<ItemGroup >
19
- <PackageReference Include =" Microsoft.AspNetCore.Blazor.Build" Version =" 0.4 .0" />
19
+ <PackageReference Include =" Microsoft.AspNetCore.Blazor.Build" Version =" 0.5 .0" />
20
20
<WebpackInputs Include =" **\*.ts" Exclude =" dist\**;node_modules\**" />
21
21
</ItemGroup >
22
22
Original file line number Diff line number Diff line change 4
4
"description" : " " ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
- "build" : " webpack" ,
7
+ "build" : " webpack-cli " ,
8
8
"test" : " echo \" Error: no test specified\" && exit 1"
9
9
},
10
10
"devDependencies" : {
11
11
"@types/emscripten" : " 0.0.31" ,
12
- "typescript" : " ^2.6.1" ,
13
- "webpack" : " ^3.8.1" ,
14
- "ts-loader" : " ^3.2.0"
12
+ "webpack" : " ^4.16.0" ,
13
+ "webpack-cli" : " ^3.0.8" ,
14
+ "typescript" : " ^2.9.2" ,
15
+ "ts-loader" : " ^4.4.2"
15
16
}
16
17
}
Original file line number Diff line number Diff line change 11
11
</PropertyGroup >
12
12
13
13
<ItemGroup >
14
- <PackageReference Include =" Microsoft.AspNetCore.Blazor.Browser" Version =" 0.4 .0" />
14
+ <PackageReference Include =" Microsoft.AspNetCore.Blazor.Browser" Version =" 0.5 .0" />
15
15
</ItemGroup >
16
16
17
17
<ItemGroup >
Original file line number Diff line number Diff line change 6
6
<Import Project =" $(_ParentDirectoryBuildTargetsPath)" Condition =" Exists('$(_ParentDirectoryBuildTargetsPath)')" />
7
7
8
8
<ItemGroup Condition =" '$(IsPackable)'=='true' and '$(SourceLinkCreate)'=='true' and '$(IncludeBuildOutput)'=='true'" >
9
- <PackageReference Include =" SourceLink.Create.CommandLine" Version =" 2.8.1 " PrivateAssets =" all" />
9
+ <PackageReference Include =" SourceLink.Create.CommandLine" Version =" 2.8.2 " PrivateAssets =" all" />
10
10
</ItemGroup >
11
11
</Project >
Original file line number Diff line number Diff line change 8
8
</PropertyGroup >
9
9
10
10
<ItemGroup >
11
- <PackageReference Include =" Blazor.Extensions.Logging" Version =" 0.1.2 " />
12
- <PackageReference Include =" Microsoft.AspNetCore.Blazor.Browser" Version =" 0.4 .0" />
13
- <PackageReference Include =" Microsoft.AspNetCore.Blazor.Build" Version =" 0.4 .0" />
14
- <DotNetCliToolReference Include =" Microsoft.AspNetCore.Blazor.Cli" Version =" 0.4 .0" />
11
+ <PackageReference Include =" Blazor.Extensions.Logging" Version =" 0.1.3 " />
12
+ <PackageReference Include =" Microsoft.AspNetCore.Blazor.Browser" Version =" 0.5 .0" />
13
+ <PackageReference Include =" Microsoft.AspNetCore.Blazor.Build" Version =" 0.5 .0" />
14
+ <DotNetCliToolReference Include =" Microsoft.AspNetCore.Blazor.Cli" Version =" 0.5 .0" />
15
15
</ItemGroup >
16
16
17
17
<ItemGroup >
Original file line number Diff line number Diff line change 9
9
< body >
10
10
< app > Loading...</ app >
11
11
12
- < script type ="blazor-boot ">
13
- </ script >
12
+ < script src ="_framework/blazor.webassembly.js "> </ script >
14
13
</ body >
15
14
</ html >
You can’t perform that action at this time.
0 commit comments