From 0757890614278e95a461d1e8d51a21f9eb06673e Mon Sep 17 00:00:00 2001 From: Mister Magoo Date: Mon, 11 Nov 2019 13:09:20 +0000 Subject: [PATCH] Nuget doesn't like more than 8KB README --- Blazor.PWA.MSBuild.sln | 1 + README - nuget.md | 56 ++++++++++++++++++++++++++++++++++++++++++ README.md | 6 ++--- 3 files changed, 60 insertions(+), 3 deletions(-) create mode 100644 README - nuget.md diff --git a/Blazor.PWA.MSBuild.sln b/Blazor.PWA.MSBuild.sln index a6e4d40..193370b 100644 --- a/Blazor.PWA.MSBuild.sln +++ b/Blazor.PWA.MSBuild.sln @@ -9,6 +9,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution ProjectSection(SolutionItems) = preProject CHANGELOG.md = CHANGELOG.md LICENSE.txt = LICENSE.txt + README - nuget.md = README - nuget.md README.md = README.md EndProjectSection EndProject diff --git a/README - nuget.md b/README - nuget.md new file mode 100644 index 0000000..775fcdc --- /dev/null +++ b/README - nuget.md @@ -0,0 +1,56 @@ +# Blazor PWA Builder - MSBuild + +The easiest way to turn your Server Side And Client Side Blazor projects into Progressive Web Apps (PWA). + +This project, when added to your build process, will generate the required files to enable basic PWA abilities for your project. + +It generates a manifest.json, a Service Worker with pre-caching of all required files (Blazor WebAssembly only) and an installer for the Service Worker. + +It currently includes a simple banner, by default, to notify the user that your application can be installed, and a simple alert to notify users when your application has been updated (CSB Only). + +This is now an official release - I am looking for feedback/issues/requests. + +## Installation + +Install the nuget BlazorPWA.MsBuild + +#### Package Manager: +`Install-Package BlazorPWA.MSBuild -Version 1.0.1` + +#### .NET Cli: +`dotnet add package BlazorPWA.MSBuild --version 1.0.1` + +#### Package Reference +`` + +## Configuration + +Required configuration: none *. + +**Really! try it!* + +This PWA builder is constructed using MSBuild targets, which get installed in your .nuget cache. + +You are free to inspect those targets and customise any part of the build by adding Properties to your csproj, or to a **.props** file in the source tree. + +For example, by default, the PWA builder will only generate the PWA files once, which means, should you want to, you can add it to your project, build once - you will have the required files for a PWA and will be free to modify them to suit. + +Should you want to re-generate the PWA files every build, you can add this Property to your **csproj** + +**`true`** + +When you want to publish an update to your app, you may need to supply a new browser cache version - if you don't change anything in the Service Worker the end user will not use your new code! + +*Note: PWAs update when they detect a change in the Service Worker code - this cache version number is used in the Service Worker, so updating the cache version number will trigger an update of the PWA for the end user. It's also important as the cache is where your code is stored - if you don't update the cache version, it will not refresh with your new code* + +**`2`** + +The web manifest has properties for the application name, which are taken, by default, from your project and solution names, but you can override them + +**`My Project`** + +**`My Really Great Project`** + +There are dozens of Properties in the *targets* files supplied by this package - you *could* customise them all, but you probably don't need to, so proceed with caution. + +Please see the full README on GitHub for more details. diff --git a/README.md b/README.md index f87f815..913f00d 100644 --- a/README.md +++ b/README.md @@ -21,13 +21,13 @@ I don't have a Mac, but I believe Safari does not prompt on desktop either. Install the nuget BlazorPWA.MsBuild #### Package Manager: -`Install-Package BlazorPWA.MSBuild -Version 1.0.0` +`Install-Package BlazorPWA.MSBuild -Version 1.0.1` #### .NET Cli: -`dotnet add package BlazorPWA.MSBuild --version 1.0.0` +`dotnet add package BlazorPWA.MSBuild --version 1.0.1` #### Package Reference -`` +`` ## Configuration