hatch js
Hatch plugin for JavaScript builds
Overview
A simple, extensible JS build plugin for hatch.
[tool.hatch.build.hooks.hatch-js]
path = "js"
install_cmd = "install"
build_cmd = "build"
tool = "pnpm"
targets = ["myproject/extension/cdn/index.js"]
See the test cases for more concrete examples.
hatch-js is driven by pydantic models for configuration and execution of the build.
These models can themselves be overridden by setting build-config-class / build-plan-class.
Configuration
verbose = "false"
path = "path/to/js/root"
tool = "npm" # or pnpm, yarn, jlpm
install_cmd = "" # install command, defaults to `npm install`/`pnpm install`/`yarn`/`jlpm`
build_cmd = "build" # build command, defaults to `npm run build`/`pnpm run build`/`yarn build`/`jlpm build`
targets = [ # outputs to validate after build
"some/output.js"
]
Metadata
Release files for hatch-js 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hatch_js-0.1.3.tar.gz | 34.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hatch_js-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 70.1 kB
Release files / hatch_js-0.1.3.tar.gz
| Download URL | hatch_js-0.1.3.tar.gz |
|---|---|
| Size | 34.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
435922e5d48cad9c8d450e89928384583b8410a892fec246545ed69c4f6346de
|
|
BLAKE2b-256 checksum How to use checksums |
ded21c3fdf2376fde981c0dba27be63dadee07ec2e76664c5a5011ca5d91a9d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Release files / hatch_js-0.1.3-py3-none-any.whl
| Download URL | hatch_js-0.1.3-py3-none-any.whl |
|---|---|
| Size | 36.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c38266ca614d549b064252f9d04557ca9b8e2f76e59213ce7acca3c158d31982
|
|
BLAKE2b-256 checksum How to use checksums |
3e7f9c414fa01839380e752f2bb469f0941a2988b5ac3157af34c791511c8db3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|