Introduction
This package builds JavaScript projects any JS tooling you might happen to use.
It contains a zest.releaser
entry point and a stand-alone command line tool.
Goal
You want to release a package that has a packages.json on it
and to build the final assets you only have two commands:
- install (dependencies)
- build (the assets)
Usually one does not want to keep the generated files on VCS,
but you want them when releasing with zest.releaser.
Configuration
For that to work you need to add a yarn.build section on setup.cfg
with the following configuration options:
[yarn.build]
folder = src/my/package/frontend
install = pnpm install --frozen-lockfile
build = pnpm build
folder: is a path to where thepackage.jsonis locatedinstall: is the command to install the dependencies that your frontend code needsbuild: is the command that generates your assets
Credits
This package is a direct inspiration from
zest.pocompile from Maurits van Rees.
Thanks!
To Do
Add tests
Changelog
3.0.0 (2024-10-01)
Breaking changes
- configuration options are mandatory,
autodiscovery of
packages.jsonhas been removed - it is no longer tied to
yarn, nor toyarn buildto generate the assets, you can use whichever tooling you want, please refer to theREADME
2.0.0 (2024-03-01)
- Nothing changed since the alpha release.
2.0.0a1 (2024-02-22)
-
Add linting with
pre-commit/tox/ GitHub Actions -
Rename the main module to something else than
buildas it clashes with the distribution https://pypi.org/project/build/ -
Update the syntax to python 3.11 and use
pathlib
1.0.0 (2019-02-11)
- No changes since last release
1.0b3 (2018-11-09)
-
Fix logic, to not try to build a project if no package.json could be found
-
Be more quiet if no
yarn.buildsection is found onsetup.cfg
1.0b2 (2018-11-09)
- Change option to
folderas package.json is expected to be there, i.e.
[yarn.build]
folder = path/to/folder/
1.0b1.post0 (2018-11-09)
- Fix (hopefully), pypi rendering
1.0b1 (2018-11-09)
- Allow to configure where package.json is located via a setup.cfg section
[yarn.build]
file = path-to/package.json
1.0a6 (2017-01-06)
- Create universal wheels again
1.0a5 (2017-01-06)
- Pass the parent folder where package.json is
1.0a4 (2017-01-06)
- Typos are fun...
1.0a3 (2017-01-06)
- Ditch wheels by now, only source releases
1.0a2 (2017-01-06)
- Be more verbose
1.0a1 (2017-01-05)
- Initial release
Release files for yarn.build 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yarn.build-3.0.0.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yarn.build-3.0.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 7.5 kB
Release files / yarn.build-3.0.0.tar.gz
| Download URL | yarn.build-3.0.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60b3e14839344b2bf086d4b4575d67733cbcf8b204c359a75ebbf0415b0a262f
|
|
BLAKE2b-256 checksum How to use checksums |
3330bf0e73d9ef5ee047f6d61c87f6f39d25655b97bb7f04f6f2ae78eec9b97c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.10
|
Release files / yarn.build-3.0.0-py2.py3-none-any.whl
| Download URL | yarn.build-3.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
96ea9a3b9609afe3de25557d923ed7cfafd075026a56627566a79045c27bd8d8
|
|
BLAKE2b-256 checksum How to use checksums |
10ffa4929b4febe7c36c875edc9ddd9e13a41ac878da3ee43a641786547d25b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.10
|