-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jacob William
committed
Nov 3, 2024
1 parent
c67f574
commit ab1c178
Showing
4 changed files
with
86 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,87 +1,67 @@ | ||
name: Publish Package | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
permissions: | ||
contents: write | ||
packages: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 7.0.x # Changed to .NET 7 as per your requirements | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
|
||
- name: Install Dependencies | ||
run: yarn install | ||
|
||
- name: Build Assets | ||
run: yarn build | ||
|
||
- name: Get Version | ||
id: version | ||
shell: bash | ||
run: | | ||
VERSION=${GITHUB_REF#refs/tags/v} | ||
echo "version=$VERSION" >> $GITHUB_OUTPUT | ||
echo "version-without-v=$VERSION" >> $GITHUB_OUTPUT | ||
|
||
- name: Pack | ||
run: dotnet pack --configuration Release /p:Version=${{ steps.version.outputs.version-without-v }} -p:PackageId=Midmoka.UI --output . | ||
|
||
# Add GitHub Packages source | ||
- name: Add GitHub Source | ||
run: | | ||
dotnet nuget add source --username jacobwi --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/jacobwi/index.json" | ||
|
||
# Push to GitHub Packages | ||
- name: Push to GitHub Packages | ||
run: | | ||
dotnet nuget push *.nupkg --source "github" --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate | ||
|
||
# Push to NuGet.org | ||
- name: Push to NuGet | ||
run: | | ||
dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate | ||
|
||
- name: Create Release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "*.nupkg" | ||
name: Release ${{ steps.version.outputs.version }} | ||
body: | | ||
Release of version ${{ steps.version.outputs.version }} | ||
|
||
### What's Changed | ||
- Blazor components wrapping Bulma CSS framework | ||
- Responsive design support | ||
- Customizable theming | ||
- Interactive components | ||
- Font Awesome integration | ||
|
||
### Getting Started | ||
```html | ||
<!-- Add to your _Host.cshtml or index.html --> | ||
<link href="_content/Midmoka.UI/css/midmoka.css" rel="stylesheet" /> | ||
``` | ||
|
||
```csharp | ||
// Add to your Program.cs | ||
builder.Services.AddMidmokaUI(); | ||
``` | ||
draft: true | ||
allowUpdates: true | ||
# π Midmoka.UI - Bulma Blazor Components | ||
[![NuGet](https://img.shields.io/nuget/v/Moka.Editor.Md.svg)](https://www.nuget.org/packages/Moka.Editor.Md/) [![NuGet](https://img.shields.io/nuget/dt/Moka.Editor.Md.svg)](https://www.nuget.org/packages/Moka.Editor.Md/) | ||
## Introduction π | ||
Midmoka.UI is a Blazor class library that wraps [Bulma](https://bulma.io/) π¨, a modern CSS framework, into reusable Blazor components. With Midmoka.UI, you can build responsive π± web applications with beautiful components, leveraging both Blazor's powerful C# capabilities π₯ and Bulma's sleek styling β¨. | ||
## Features β¨ | ||
- π¨ **Theming**: Customize components with Bulma variables and your own themes. | ||
- 𧱠**Reusable Components**: Use out-of-the-box components for faster development. | ||
- π± **Responsive**: Build websites that look great on all devices. | ||
- π§ **Customizable**: Adjust components with a wide range of parameters and options. | ||
- π **Interactive Demos**: See components in action with live examples. | ||
## Getting Started | ||
### Prerequisites | ||
Ensure you have the following installed: | ||
- .NET 7.0+ | ||
- Node.js | ||
- Yarn/Node package manager | ||
### Installation | ||
1. Install the necessary Node.js packages: | ||
```bash | ||
yarn | ||
``` | ||
2. Run the Gulp tasks to bundle and prepare your assets: | ||
```bash | ||
yarn build | ||
``` | ||
3. Build the library: | ||
```bash | ||
dotnet build | ||
``` | ||
### Usage | ||
After installing the package and running Gulp tasks, simply reference the bundled files in your header tag in index HTML | ||
file. | ||
For CSS: | ||
```html | ||
<link href="_content/Moka.UI/css/midmoka.css" rel="stylesheet" /> | ||
``` | ||
### π· Gulp Tasks | ||
I use Gulp to automate the bundling and optimization of assets. Here's what each task does: | ||
- styles: Concatenates and minifies CSS files and includes Font Awesome styles. | ||
- default: Runs all the above tasks in sequence. | ||
You can run a specific task with the following command: | ||
``` | ||
yarn gulp <task-name> | ||
``` | ||
For example, to only run the styles task: | ||
```bash | ||
yarn gulp styles | ||
``` | ||
### π« Contributing | ||
Contributions are welcome as this is an open-source project in such an amazing place to learn, inspire, and create. Any | ||
contributions you make are greatly appreciated. | ||
#### πͺ Steps: | ||
- Fork the Project | ||
- Create your Feature Branch (git checkout -b feature/AmazingFeature) | ||
- Commit your Changes (git commit -m 'Add some AmazingFeature') | ||
- Push to the Branch (git push origin feature/AmazingFeature) | ||
- Open a Pull Request | ||
### License | ||
Distributed under the MIT License. See LICENSE for more information. | ||
π«‘ Jacob William - me@jacobwi.net | ||
### WIP | ||
- [x] Add Bulma | ||
- [ ] Upload to NuGet | ||
- [ ] Add more tests | ||
- [ ] Add more documentation | ||
- [ ] Add more examples | ||
- [ ] Add more features |