A PDM plugin to build external assets such as a react UI.
Project description
pdm-buildasset
A PDM plugin to build external assets such as a react UI.
Configuration
Config item | Description | Default value | Required |
---|---|---|---|
build-asset.disable_hook |
Disable assets being built during build command | False |
No |
build-asset.{asset_name}.directory |
Directory of where the asset resides relative to the project root | Yes | |
build-asset.{asset_name}.command |
Command to build the asset | Yes | |
build-asset.{asset_name}.env |
Dictionary of environment variables for the build command | {} |
No |
build-asset.{asset_name}.dest_dir |
Destination directory of build asset | No | |
build-asset.{asset_name}.clean_dest |
Remove destination directory at start of build | True |
No |
build-asset.{asset_name}.create_dest |
Create destination directory at start of build | True |
No |
All configuration items use prefix pdm.tool
, this is a viable configuration:
Example configuration
[tool.pdm.build-asset]
disable_hook = false
[tool.pdm.build-asset.kiosk]
directory = "ui/kiosk"
command = "npm install && npm run build"
env = {BUILD_PATH = "../../frontend/kiosk"}
dest_dir = "frontend/kiosk"
[tool.pdm.build-asset.manage]
directory = "ui/manage"
command = "npm install && npm run build"
Usage
This plugin enables PDM to build external assets during the normal build command.
pdm build
- Command builds assets then continues as normalpdm build-asset
- Command builds assets only
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
pdm-buildasset-1.0.0.tar.gz
(3.3 kB
view details)
Built Distribution
File details
Details for the file pdm-buildasset-1.0.0.tar.gz
.
File metadata
- Download URL: pdm-buildasset-1.0.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 108cee0ead106de13b6c6ac01c41cb81a5bce5fc191abbc84bac732b3e8bb1c0 |
|
MD5 | 8fe1ca197c4416b2dfff58ff40fa8e30 |
|
BLAKE2b-256 | 757ea0f9208cc50d190debd94fc48fda489aad90c91d2222435bb1ffc23587df |
File details
Details for the file pdm_buildasset-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: pdm_buildasset-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22e157b4b3e0871fd214632902fad2b95f30dc2daf59436f95818ed9f6e68130 |
|
MD5 | 326b9a20bb7ec721485cdf923f65088d |
|
BLAKE2b-256 | 4a19174eb7e31b6d53397eec4cb6f73c3bd07ccf31bd4b44f05afe78624f02e6 |