Hatch plugin for JavaScript builds
Project description
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"
]
[!NOTE] This library was generated using copier from the Base Python Project Template repository.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hatch_js-0.1.2.tar.gz.
File metadata
- Download URL: hatch_js-0.1.2.tar.gz
- Upload date:
- Size: 33.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b78f2f5340f55d88b3db70efdb77c4556e23a24256ee85774e710c434d50ba0
|
|
| MD5 |
ae199d6e40d299e1a42fc692371c8a7a
|
|
| BLAKE2b-256 |
30ea3f8dc4bf202a93289f49659c9936340c9fe2ff868fb6b8d12e52edccd5ef
|
File details
Details for the file hatch_js-0.1.2-py3-none-any.whl.
File metadata
- Download URL: hatch_js-0.1.2-py3-none-any.whl
- Upload date:
- Size: 35.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49802291eab4912125dfdca927ae3b5987a4fa1336fcb616e5d73d7eedecba66
|
|
| MD5 |
f36c586a73478ec32da8e4ef2ba2020d
|
|
| BLAKE2b-256 |
9670de0b04bcc0a99bb5a991c797bb17c930cbd3751c45275cc7dd3accc713b8
|