lektor-website/content/docs/api/build/program/produce-artifacts/contents.lr

18 lines
644 B
Plaintext
Raw Normal View History

2015-12-26 20:17:00 +01:00
title: produce_artifacts
---
summary: Method that needs to be overridden for the build to work.
---
type: method
---
body:
This method needs to be overridden by subclasses. It's invoked at the
beginning of the build process and it's purpose is to invoke the
[declare_artifact :ref](../declare-artifact/) method for each artifact
that the build should generate. For each of these invocations later the
[build_artifact :ref](../build-artifact/) method will be invoked if the
builder determined that the artifact needs to be rebuild.
For an example refer to the [add_build_program
:ref](../../../environment/add-build-program/) documentation.