Minisauras
An open-source CI/CD automation tool based on :octocat: GitHub Actions that pulls all the JavaScript and CSS files from your base branch, minify them and creates a pull-request with a new branch.
Install / Use
/learn @TeamTigers/MinisaurasREADME
Minisauras :tada:
Minisauras is an open-source CI/CD automation tool based on :octocat: GitHub Actions that pulls all the JavaScript and CSS files from your base branch, minify them and creates a pull-request with a new branch.
How it works
- Traverse through a given directory (if not provided, traverse from root), finds all the JavaScript & CSS files within it and it's sub-directories.
- Afterwards, Minisauras minify all those files.
- Finally, it creates a new branch in your repository, push those changes and creates a pull request that can be merged in your base branch.
Usage
- Create a personal access token.
- Then setup a secret using that personal access token in your desired repository.
- Create a workflow. For example: main.yml under (.github/workflows) directory.
- In the workflow, provide following things:
- Personal access token. For example: ${{ secrets.TOKEN }} if you set your secret with a name 'TOKEN'.
- The desired directory in which you want to minify CSS and JS files. For example: './' for root and 'src/' for src directory.
Examples
If you want to minify all your JS and CSS files under root directory
name: minisauras
on: [push]
jobs:
read:
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: minisauras
uses: TeamTigers/minisauras@v2.0.0
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
id: dir
with:
directory: './' ## minify all files from root directory
If you want to minify all your JS and CSS files under your custom directory ex. assets/js & assets/css
name: minisauras
on: [push]
jobs:
read:
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: minisauras
uses: TeamTigers/minisauras@v2.0.0
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
id: dir
with:
directory: 'assets/' ## minify all files under assets directory
Example of usage
There you go !! We have created an example repository where you can see how minisauras has minified all the CSS and JavaScript files as well as created a new branch and sent a pull request.
📌 Visit the example repository at : https://github.com/TeamTigers/minisauras-example
License
This project is licensed under MIT
If you like our work please give it a :star:
Related Skills
apple-reminders
346.4kManage Apple Reminders via remindctl CLI (list, add, edit, complete, delete). Supports lists, date filters, and JSON/plain output.
gh-issues
346.4kFetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
oracle
346.4kBest practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).

