Classes
PipelineConfig
dataclass
PipelineConfig
dataclass Attributes
| Name | Type | Description |
|---|---|---|
root_path |
Path |
|
theme_name |
str | None |
|
enabled |
bool |
|
scss |
bool |
|
postcss |
bool |
|
postcss_config |
str | None |
|
bundle_js |
bool |
|
esbuild_target |
str |
|
sourcemaps |
bool |
NodePipeline
Thin wrapper over Node CLIs (sass, postcss, esbuild).
NodePipeline
Thin wrapper over Node CLIs (sass, postcss, esbuild).
Methods 1
build
Run the pipeline and return a list of compiled output files.
build
def build(self) -> list[Path]
Run the pipeline and return a list of compiled output files.
Returns
list[Path]
Internal Methods 1
__init__
__init__
def __init__(self, config: PipelineConfig) -> None
Parameters 1
config |
PipelineConfig |
Functions
from_site
Factory to create pipeline from site config.
from_site
def from_site(site: Site) -> NodePipeline
Factory to create pipeline from site config.
Parameters 1
| Name | Type | Default | Description |
|---|---|---|---|
site |
Site |
— |
Returns
NodePipeline