Build web apps Blazor fast that run at WASM speed!
Documentation is now available.
Before we start, make sure that the following tools are available in your system:
You can install node from here. Ensure availability by executing node command:
node --version
v14.15.4
npm --version
6.14.10
You can install sass from here. Preferred method is using npm global:
npm install -g sass
Ensure availability by executing sass command:
sass --version
1.32.5 compiled with dart2js 2.10.4
The following steps are only required to be executed once:
dotnet tool install --global Bionic
bionic start
The next steps are part of your day-to-day development:
bionic serve
bionic generate component CounterComponent
bionic version
bionic update
bionic uninstall
You'll need the following tools installed:
bionic platform add electron
bionic platform electron init
bionic platform electron build
bionic platform electron serve
You'll need the following tools installed:
bionic platform add capacitor
bionic platform capacitor init
bionic platform capacitor android init
bionic platform capacitor android build
bionic platform capacitor android open
bionic generate page MyPage
bionic generate component MyComponent
bionic generate service MyService
Blast scripts are easy to use and organize. They are most useful to easily set build sequences.
In your Blazor project Client or Standalone directory, use your favorite text editor or IDE to create or edit .bionic/bionic.blast
Add the following content and save it:
:electron
>electron-init
>electron-build
:electron-init
bionic platform add electron
bionic platform electron init
:electron-build
bionic platform electron build
bionic platform electron serve
Lines starting with:
: - targets
> - sub-targets. Make sure that there are no spaces after it.
Any other type of line is a cli command.
There's a bug in dotnet tools that is preventing bionic tool from being found in the system path.
There are several solutions. If you are in OSX, just edit /etc/paths.d/dotnet-cli-tools
to be $HOME/.dotnet/tools
.
Did not try in Linux, but you may have to do the same or just edit your shell init script accordingly.
Then have bionic blast it away: bionic blast electron