{"id":45824614,"url":"https://github.com/python-project-templates/hatch-js","last_synced_at":"2026-02-26T21:49:30.014Z","repository":{"id":307847056,"uuid":"826459164","full_name":"python-project-templates/hatch-js","owner":"python-project-templates","description":"Hatch plugin for JavaScript","archived":false,"fork":false,"pushed_at":"2026-02-15T06:04:15.000Z","size":59,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-15T12:52:33.665Z","etag":null,"topics":["build-tool","hatch","hatchling","javascript","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/python-project-templates.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-07-09T18:42:46.000Z","updated_at":"2026-02-15T06:04:18.000Z","dependencies_parsed_at":"2025-08-02T16:28:14.920Z","dependency_job_id":"f8506ac8-e3a0-40f9-8ac7-482855698d68","html_url":"https://github.com/python-project-templates/hatch-js","commit_stats":null,"previous_names":["python-project-templates/hatch-js"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/python-project-templates/hatch-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-project-templates%2Fhatch-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-project-templates%2Fhatch-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-project-templates%2Fhatch-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-project-templates%2Fhatch-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/python-project-templates","download_url":"https://codeload.github.com/python-project-templates/hatch-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-project-templates%2Fhatch-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29873799,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T21:05:00.265Z","status":"ssl_error","status_checked_at":"2026-02-26T20:57:13.669Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["build-tool","hatch","hatchling","javascript","python"],"created_at":"2026-02-26T21:49:29.375Z","updated_at":"2026-02-26T21:49:30.005Z","avatar_url":"https://github.com/python-project-templates.png","language":"Python","readme":"# hatch js\n\nHatch plugin for JavaScript builds\n\n[![Build Status](https://github.com/python-project-templates/hatch-js/actions/workflows/build.yaml/badge.svg?branch=main\u0026event=push)](https://github.com/python-project-templates/hatch-js/actions/workflows/build.yaml)\n[![codecov](https://codecov.io/gh/python-project-templates/hatch-js/branch/main/graph/badge.svg)](https://codecov.io/gh/python-project-templates/hatch-js)\n[![License](https://img.shields.io/github/license/python-project-templates/hatch-js)](https://github.com/python-project-templates/hatch-js)\n[![PyPI](https://img.shields.io/pypi/v/hatch-js.svg)](https://pypi.python.org/pypi/hatch-js)\n\n## Overview\n\nA simple, extensible JS build plugin for [hatch](https://hatch.pypa.io/latest/).\n\n```toml\n[tool.hatch.build.hooks.hatch-js]\npath = \"js\"\ninstall_cmd = \"install\"\nbuild_cmd = \"build\"\ntool = \"pnpm\"\ntargets = [\"myproject/extension/cdn/index.js\"]\n```\n\nSee the [test cases](./hatch_js/tests/) for more concrete examples.\n\n`hatch-js` is driven by [pydantic](https://docs.pydantic.dev/latest/) models for configuration and execution of the build.\nThese models can themselves be overridden by setting `build-config-class` / `build-plan-class`.\n\n## Configuration\n\n```toml\nverbose = \"false\"\n\npath = \"path/to/js/root\"\ntool = \"npm\" # or pnpm, yarn, jlpm\n\ninstall_cmd = \"\" # install command, defaults to `npm install`/`pnpm install`/`yarn`/`jlpm`\nbuild_cmd = \"build\" # build command, defaults to `npm run build`/`pnpm run build`/`yarn build`/`jlpm build`\ntargets = [  # outputs to validate after build\n    \"some/output.js\"\n]\n```\n\n\u003e [!NOTE]\n\u003e This library was generated using [copier](https://copier.readthedocs.io/en/stable/) from the [Base Python Project Template repository](https://github.com/python-project-templates/base).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpython-project-templates%2Fhatch-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpython-project-templates%2Fhatch-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpython-project-templates%2Fhatch-js/lists"}