Commit a353bf8
committed
feat(build): add
This changeset adds a new utility to build plugins:
`utils.deploy.env.add()`. This utility function allows build plugins to
register environment variables at build time that will be injected into
a specific deploy.
Userland build plugins cannot see or manipulate the deploy environment
variables registered by core or other userland plugins.
Deploy-specific environment variables are collected by the `build`
supervisor process and processed by the deploy step, which sends them to
Buildbot for processing. They are also returned by the programmatic `dev`
interface; we'll use these returned variables in the CLI, where we'll
e.g. set them on functions.
While I was in here I also converted a few files to TypeScript/generally
did my best to improve the types along the way.utils.deploy.env.add build plugin API1 parent 393ffee commit a353bf8
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
0 commit comments