Skip to main content

Hatch plugin for JavaScript builds

Project description

hatch js

Hatch plugin for JavaScript builds

Build Status codecov License PyPI

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hatch_js-0.1.2.tar.gz (33.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hatch_js-0.1.2-py3-none-any.whl (35.3 kB view details)

Uploaded Python 3

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

Hashes for hatch_js-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8b78f2f5340f55d88b3db70efdb77c4556e23a24256ee85774e710c434d50ba0
MD5 ae199d6e40d299e1a42fc692371c8a7a
BLAKE2b-256 30ea3f8dc4bf202a93289f49659c9936340c9fe2ff868fb6b8d12e52edccd5ef

See more details on using hashes here.

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

Hashes for hatch_js-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 49802291eab4912125dfdca927ae3b5987a4fa1336fcb616e5d73d7eedecba66
MD5 f36c586a73478ec32da8e4ef2ba2020d
BLAKE2b-256 9670de0b04bcc0a99bb5a991c797bb17c930cbd3751c45275cc7dd3accc713b8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page