{"id":30196460,"url":"https://github.com/aspect-build/rules_terser","last_synced_at":"2025-08-13T05:22:31.988Z","repository":{"id":37883842,"uuid":"483490160","full_name":"aspect-build/rules_terser","owner":"aspect-build","description":"Bazel rules for https://terser.org/ - a JavaScript minifier","archived":false,"fork":false,"pushed_at":"2025-06-20T23:43:11.000Z","size":221,"stargazers_count":9,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-08-06T16:56:20.634Z","etag":null,"topics":["bazel","bazel-rules"],"latest_commit_sha":null,"homepage":"","language":"Starlark","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aspect-build.png","metadata":{"funding":{"github":null,"patreon":null,"open_collective":"aspect-build","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null},"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-04-20T03:14:28.000Z","updated_at":"2025-08-03T03:32:42.000Z","dependencies_parsed_at":"2023-12-15T22:02:59.196Z","dependency_job_id":"67ed5c8e-6f06-446f-ba56-f2f96e29f13e","html_url":"https://github.com/aspect-build/rules_terser","commit_stats":{"total_commits":111,"total_committers":7,"mean_commits":"15.857142857142858","dds":0.3513513513513513,"last_synced_commit":"75d7f610e1deeb75d90936a892f3a75b9d507549"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":"bazel-contrib/rules-template","purl":"pkg:github/aspect-build/rules_terser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspect-build%2Frules_terser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspect-build%2Frules_terser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspect-build%2Frules_terser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspect-build%2Frules_terser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aspect-build","download_url":"https://codeload.github.com/aspect-build/rules_terser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aspect-build%2Frules_terser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269829658,"owners_count":24481984,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bazel","bazel-rules"],"created_at":"2025-08-13T05:22:29.035Z","updated_at":"2025-08-13T05:22:31.949Z","avatar_url":"https://github.com/aspect-build.png","language":"Starlark","funding_links":["https://opencollective.com/aspect-build"],"categories":[],"sub_categories":[],"readme":"# Bazel rules for terser\n\n[terser](https://terser.org/) is a JavaScript minifier.\n\nThese rules teach Bazel how to interact with the [terser CLI](https://terser.org/docs/cli-usage).\n\n_Need help?_ This ruleset has support provided by https://aspect.build/services.\n\n## Installation\n\nFrom the release you wish to use:\n\u003chttps://github.com/aspect-build/rules_terser/releases\u003e\ncopy the WORKSPACE snippet into your `WORKSPACE` file.\n\n## Usage\n\nSee the [API documentation](docs/rules) and the example usage in the [`examples/`](https://github.com/aspect-build/rules_terser/tree/main/examples/) directory.\nNote that the examples rely on code in the `/WORKSPACE` file in the root of this repo.\n\n### From a BUILD file\n\nThis is the most common usage. See [`examples/minify`](https://github.com/aspect-build/rules_terser/tree/main/examples/)\n\n### From a macro\n\nYou could write a Bazel macro which uses terser, by calling it from a `genrule` or\n[`run_binary`](https://docs.aspect.build/bazelbuild/bazel-skylib/1.2.1/docs/run_binary_doc_gen.html#run_binary).\nThis is illustrated in examples/macro.\n\n### From a custom rule\n\nThe most advanced usage is to write your own custom rule.\n\nThis is a good choice if you need to integrate with other Bazel rules via [Providers](https://docs.bazel.build/versions/main/skylark/rules.html#providers).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faspect-build%2Frules_terser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faspect-build%2Frules_terser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faspect-build%2Frules_terser/lists"}