angular
Angular build, lint, test, and serve utilities for Dagger pipelines.
Installation
dagger install github.com/telchak/daggerverse/angular@v0.1.0Entrypoint
Return Type
Angular ! Example
dagger -m github.com/telchak/daggerverse/angular@010621c997378db92da5969584001be575c5e5a7 call \
func (m *MyModule) Example() *dagger.Angular {
return dag.
Angular()
}@function
def example() -> dagger.Angular:
return (
dag.angular()
)@func()
example(): Angular {
return dag
.angular()
}Types
Angular 🔗
Angular build, lint, test, and serve utilities for Dagger pipelines.
build() 🔗
Build an Angular project and return the dist directory.
Runs ng build with the specified configuration. Auto-detects the
output path from angular.json if not explicitly provided.
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | Angular project source directory |
| configuration | String ! | "production" | Build configuration (e.g. 'production', 'development') |
| outputPath | String ! | "" | Custom output path (auto-detected from angular.json if empty) |
| nodeVersion | String ! | "22" | Node.js version |
| npmCache | CacheVolume | null | Custom npm cache volume (uses default if not provided) |
Example
dagger -m github.com/telchak/daggerverse/angular@010621c997378db92da5969584001be575c5e5a7 call \
build --configuration string --output-path string --node-version stringfunc (m *MyModule) Example(configuration string, outputPath string, nodeVersion string) *dagger.Directory {
return dag.
Angular().
Build(configuration, outputPath, nodeVersion)
}@function
def example(configuration: str, output_path: str, node_version: str) -> dagger.Directory:
return (
dag.angular()
.build(configuration, output_path, node_version)
)@func()
example(configuration: string, outputPath: string, nodeVersion: string): Directory {
return dag
.angular()
.build(configuration, outputPath, nodeVersion)
}install() 🔗
Install Angular project dependencies.
Runs npm ci (or npm install if no lockfile) and returns the source directory with node_modules.
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | Angular project source directory |
| nodeVersion | String ! | "22" | Node.js version |
| npmCache | CacheVolume | null | Custom npm cache volume (uses default if not provided) |
Example
dagger -m github.com/telchak/daggerverse/angular@010621c997378db92da5969584001be575c5e5a7 call \
install --node-version stringfunc (m *MyModule) Example(nodeVersion string) *dagger.Directory {
return dag.
Angular().
Install(nodeVersion)
}@function
def example(node_version: str) -> dagger.Directory:
return (
dag.angular()
.install(node_version)
)@func()
example(nodeVersion: string): Directory {
return dag
.angular()
.install(nodeVersion)
}lint() 🔗
Lint an Angular project using ng lint.
Returns the lint output. Requires @angular-eslint to be configured.
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | Angular project source directory |
| fix | Boolean ! | false | Automatically fix lint errors |
| nodeVersion | String ! | "22" | Node.js version |
| npmCache | CacheVolume | null | Custom npm cache volume (uses default if not provided) |
Example
dagger -m github.com/telchak/daggerverse/angular@010621c997378db92da5969584001be575c5e5a7 call \
lint --fix boolean --node-version stringfunc (m *MyModule) Example(ctx context.Context, fix bool, nodeVersion string) string {
return dag.
Angular().
Lint(ctxfix, nodeVersion)
}@function
async def example(fix: bool, node_version: str) -> str:
return await (
dag.angular()
.lint(fix, node_version)
)@func()
async example(fix: boolean, nodeVersion: string): Promise<string> {
return dag
.angular()
.lint(fix, nodeVersion)
}serve() 🔗
Start the Angular development server.
Returns a Dagger Service running ng serve.
Return Type
Service !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | Angular project source directory |
| port | Integer ! | 4200 | Port to serve on |
| nodeVersion | String ! | "22" | Node.js version |
| npmCache | CacheVolume | null | Custom npm cache volume (uses default if not provided) |
Example
dagger -m github.com/telchak/daggerverse/angular@010621c997378db92da5969584001be575c5e5a7 call \
serve --port integer --node-version stringfunc (m *MyModule) Example(port int, nodeVersion string) *dagger.Service {
return dag.
Angular().
Serve(port, nodeVersion)
}@function
def example(port: int, node_version: str) -> dagger.Service:
return (
dag.angular()
.serve(port, node_version)
)@func()
example(port: number, nodeVersion: string): Service {
return dag
.angular()
.serve(port, nodeVersion)
}test() 🔗
Run Angular project tests using ng test.
Returns the test output.
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | Angular project source directory |
| watch | Boolean ! | false | Run tests in watch mode |
| browsers | String ! | "ChromeHeadless" | Browser to use for tests |
| nodeVersion | String ! | "22" | Node.js version |
| npmCache | CacheVolume | null | Custom npm cache volume (uses default if not provided) |
Example
dagger -m github.com/telchak/daggerverse/angular@010621c997378db92da5969584001be575c5e5a7 call \
test --watch boolean --browsers string --node-version stringfunc (m *MyModule) Example(ctx context.Context, watch bool, browsers string, nodeVersion string) string {
return dag.
Angular().
Test(ctxwatch, browsers, nodeVersion)
}@function
async def example(watch: bool, browsers: str, node_version: str) -> str:
return await (
dag.angular()
.test(watch, browsers, node_version)
)@func()
async example(watch: boolean, browsers: string, nodeVersion: string): Promise<string> {
return dag
.angular()
.test(watch, browsers, nodeVersion)
}