@adobe-apimesh/mesh-builder v1.6.2-alpha.3
Mesh Builder
Package with mesh artifacts building and compiling logic
Exports
validateMesh
validateMesh(meshConfig: MeshConfig) => Promise
Validate Mesh function takes the meshConfig
as argument and validates if the mesh confines with the CLI rules. Upon a successful validation the function resolves the returned promise. If validation fails, all reasons for invalidation will be thrown in the rejected promise.
buildMesh
buildMesh(meshId: string, meshConfig: MeshConfig) => Promise<boolean | undefined>
Build Mesh function takes the meshId
and meshConfig
as arguments and builds the mesh artifacts under the mesh-artifact
folder in the current working directory under the meshId
sub directory.
Upon a successful build, buildMesh
returns a Promise that resolves to true
and false
for a failure. buildMesh
will throw MeshBuildError
if there is a bulid error.
compileMesh
compileMesh(meshId: string) => Promise<string[]>
Compile Mesh function takes the meshId
to find the built TypeScript mesh artifacts under the mesh-artifact
folder and compiles them to JavaScript using the typescript
package. It returns a Promise of JavaScript file paths that have been compiled and written to file system.
Types
validateMesh(meshConfig: MeshConfig) => Promise<boolean>
buildMesh(meshId: string, meshConfig: MeshConfig) => Promise<boolean | undefined>
compileMesh(meshId: string) => Promise<string[]>
type MeshBuildError {
name: string;
stack?: string;
cause?: unknown;
requestId?: string;
}
8 months ago
8 months ago
8 months ago
11 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago