{"id":13531122,"url":"https://github.com/TeamTigers/minisauras","last_synced_at":"2025-04-01T19:31:41.142Z","repository":{"id":45103334,"uuid":"293282606","full_name":"TeamTigers/minisauras","owner":"TeamTigers","description":"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.","archived":false,"fork":false,"pushed_at":"2023-10-17T13:25:59.000Z","size":3781,"stargazers_count":48,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-12T17:30:59.042Z","etag":null,"topics":["action","actions-hackathon","actionshackathon","ci-cd","dev-community","dev-hackathon","github","github-actions","github-core","javascript","javascript-library","minisauras","nodejs","octokit","terser","webpack"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/minisauras","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TeamTigers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-09-06T13:29:12.000Z","updated_at":"2024-04-20T14:31:29.000Z","dependencies_parsed_at":"2024-01-11T00:01:28.269Z","dependency_job_id":"475988f6-a864-4447-a484-beffd531cd65","html_url":"https://github.com/TeamTigers/minisauras","commit_stats":{"total_commits":29,"total_committers":3,"mean_commits":9.666666666666666,"dds":"0.13793103448275867","last_synced_commit":"de46c20f67567b74f019788a3b1b334c2994e9ab"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeamTigers%2Fminisauras","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeamTigers%2Fminisauras/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeamTigers%2Fminisauras/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TeamTigers%2Fminisauras/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TeamTigers","download_url":"https://codeload.github.com/TeamTigers/minisauras/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246700400,"owners_count":20819866,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["action","actions-hackathon","actionshackathon","ci-cd","dev-community","dev-hackathon","github","github-actions","github-core","javascript","javascript-library","minisauras","nodejs","octokit","terser","webpack"],"created_at":"2024-08-01T07:01:00.259Z","updated_at":"2025-04-01T19:31:36.130Z","avatar_url":"https://github.com/TeamTigers.png","language":"JavaScript","funding_links":[],"categories":["Community Resources"],"sub_categories":["Utility"],"readme":"\u003cdiv align=\"center\"\u003e\n\n![banner](assets/icons/icon.svg)\n\n![minisauras](https://img.shields.io/github/workflow/status/teamtigers/minisauras/minisauras?color=00c853\u0026labelColor=212121\u0026label=minisauras\u0026logo=github\u0026logoColor=ffffff)\n![star](https://img.shields.io/github/stars/teamtigers/minisauras?color=536dfe\u0026logo=github\u0026labelColor=212121\u0026logoColor=ffffff)\n![releases](https://img.shields.io/github/v/release/teamtigers/minisauras?color=3d5afe\u0026label=minisauras\u0026labelColor=212121\u0026logo=github%20actions\u0026logoColor=ffffff)\n![GitHub](https://img.shields.io/github/license/teamtigers/minisauras?color=00c853\u0026labelColor=212121\u0026logo=sprint\u0026logoColor=ffffff)\n[![Hackathon](https://img.shields.io/badge/%20-actions%20hackathon-black?color=14171A\u0026labelColor=3f51b5\u0026logo=dev.to\u0026logoColor=ffffff)](https://dev.to/_shunjid/minisauras-a-github-action-to-minify-css-and-js-files-34b9)\n[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fteamtigers%2Fminisauras\u0026count_bg=%23212121\u0026title_bg=%23512da8\u0026icon=buzzfeed.svg\u0026icon_color=%23FFFFFF\u0026title=vistited\u0026edge_flat=false)](https://hits.seeyoufarm.com)\n\n\u003c/div\u003e\n\n\n\n# Minisauras :tada:\nMinisauras is an open-source CI/CD automation tool based on :octocat: [**GitHub Actions**](https://github.com/features/actions) that pulls all the JavaScript and CSS files from your base branch, minify them and creates a pull-request with a new branch. \n\n## How it works\n- Traverse through a given directory (if not provided, traverse from root), finds all the JavaScript \u0026 CSS files within it and it's sub-directories. \n- Afterwards, **Minisauras** minify all those files.\n- 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.\n\n## Usage\n- Create a [personal access token](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token).\n- Then [setup a secret](https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets) using that personal access token in your desired repository.\n- Create a workflow. For example: **main.yml** under (.github/workflows) directory.\n- In the workflow, provide following things:\n    * Personal access token. For example: ${{ secrets.TOKEN }} if you set your secret with a name 'TOKEN'.\n    * The desired directory in which you want to minify CSS and JS files. For example: './' for root and 'src/' for src directory.\n\n## Examples\n\n_**If you want to minify all your JS and CSS files under root directory**_\n\n```yml\nname: minisauras\n\non: [push]\n\njobs:\n  read:\n    runs-on: ubuntu-18.04\n\n    steps:\n    - name: Checkout\n      uses: actions/checkout@v2\n    - name: minisauras\n      uses: TeamTigers/minisauras@v2.0.0\n      env:\n        GITHUB_TOKEN: ${{ secrets.TOKEN }}\n      id: dir\n      with:\n        directory: './' ## minify all files from root directory\n```\n\n\n_**If you want to minify all your JS and CSS files under your custom directory ex. assets/js \u0026 assets/css**_\n\n```yml\nname: minisauras\n\non: [push]\n\njobs:\n  read:\n    runs-on: ubuntu-18.04\n\n    steps:\n    - name: Checkout\n      uses: actions/checkout@v2\n    - name: minisauras\n      uses: TeamTigers/minisauras@v2.0.0\n      env:\n        GITHUB_TOKEN: ${{ secrets.TOKEN }}\n      id: dir\n      with:\n        directory: 'assets/' ## minify all files under assets directory\n```\n\n## Example of usage\n\nThere 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](https://github.com/TeamTigers/minisauras-example/pull/1).\n\n📌 Visit the example repository at : https://github.com/TeamTigers/minisauras-example\n\n\n[![cat](assets/images/cat-pr.gif)](https://github.com/TeamTigers/minisauras-example/)\n\n## License \nThis project is licensed under [MIT](LICENSE)\n\n## If you like our work please give it a :star:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTeamTigers%2Fminisauras","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTeamTigers%2Fminisauras","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTeamTigers%2Fminisauras/lists"}