practical-asp-net / blazortailwindtemplate Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
The latest version of Tailwind ships with a brand new Just-In-Time mode.
https://tailwindcss.com/docs/just-in-time-mode
In theory this would remove the need to compile the Tailwind css file on every build but it's not yet clear (to me at least) how it works and how (or indeed if) it could be used with dotnet.
The template is currently only available for Blazor WASM, would be useful to be able to create Blazor Server projects too.
Fixup CI workflows a bit to optimize:
It may be preferable (at least as an option) to install the Tailwind CLI locally in the project's node_modules folder.
My understanding is that NPX would then always use that locally installed version.
This might help usage of the template in offline scenarios as, following the initial build (which would download and install the Tailwind CLI) there should be no need for subsequent builds to require an Internet connection.
Leverage the PackageReadmeFile
to include the README in the package, which then provides a better experience on nuget.org and within other NuGet clients.
At the moment we're invoking the Tailwind CLI on every Debug build.
This is largely pointless because the first build creates wwwroot\css\app.css and thereafter there are only a few scenarios where we'd want to rebuild that file.
For any other Debug/Dev builds we're just doing unnecessary work (and slowing down the build).
The template currently allows for creating .NET 6 projects, would be great to be able to target .NET 5 and potentially earlier versions of .NET (Core) too.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.