browser-ext
CI pipeline for browser extensions (WXT-based — bookmark-mind-bs-ext, ai-rewrite).Build output dir varies per project (WXT ships to `.output`, vanilla-JS ships nothing).
If `build` script is missing, treat as no-op source-only extension.
Installation
dagger install github.com/chirag127/workflows/dagger/browser-ext@c00f0b78c773ec3d2a9a9e01ac8a93646fe95cfeEntrypoint
Return Type
BrowserExt Example
dagger -m github.com/chirag127/workflows/dagger/browser-ext@c00f0b78c773ec3d2a9a9e01ac8a93646fe95cfe call \
func (m *MyModule) Example() *dagger.BrowserExt {
return dag.
Browserext()
}@function
def example() -> dagger.BrowserExt:
return (
dag.browser_ext()
)@func()
example(): BrowserExt {
return dag
.browserExt()
}Types
BrowserExt 🔗
lint() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/chirag127/workflows/dagger/browser-ext@c00f0b78c773ec3d2a9a9e01ac8a93646fe95cfe call \
lint --source DIR_PATHfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string {
return dag.
Browserext().
Lint(ctx, source)
}@function
async def example(source: dagger.Directory) -> str:
return await (
dag.browser_ext()
.lint(source)
)@func()
async example(source: Directory): Promise<string> {
return dag
.browserExt()
.lint(source)
}typecheck() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/chirag127/workflows/dagger/browser-ext@c00f0b78c773ec3d2a9a9e01ac8a93646fe95cfe call \
typecheck --source DIR_PATHfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string {
return dag.
Browserext().
Typecheck(ctx, source)
}@function
async def example(source: dagger.Directory) -> str:
return await (
dag.browser_ext()
.typecheck(source)
)@func()
async example(source: Directory): Promise<string> {
return dag
.browserExt()
.typecheck(source)
}test() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/chirag127/workflows/dagger/browser-ext@c00f0b78c773ec3d2a9a9e01ac8a93646fe95cfe call \
test --source DIR_PATHfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string {
return dag.
Browserext().
Test(ctx, source)
}@function
async def example(source: dagger.Directory) -> str:
return await (
dag.browser_ext()
.test(source)
)@func()
async example(source: Directory): Promise<string> {
return dag
.browserExt()
.test(source)
}build() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/chirag127/workflows/dagger/browser-ext@c00f0b78c773ec3d2a9a9e01ac8a93646fe95cfe call \
build --source DIR_PATHfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string {
return dag.
Browserext().
Build(ctx, source)
}@function
async def example(source: dagger.Directory) -> str:
return await (
dag.browser_ext()
.build(source)
)@func()
async example(source: Directory): Promise<string> {
return dag
.browserExt()
.build(source)
}megalint() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/chirag127/workflows/dagger/browser-ext@c00f0b78c773ec3d2a9a9e01ac8a93646fe95cfe call \
megalint --source DIR_PATHfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string {
return dag.
Browserext().
Megalint(ctx, source)
}@function
async def example(source: dagger.Directory) -> str:
return await (
dag.browser_ext()
.megalint(source)
)@func()
async example(source: Directory): Promise<string> {
return dag
.browserExt()
.megalint(source)
}ci() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | No description provided |
Example
dagger -m github.com/chirag127/workflows/dagger/browser-ext@c00f0b78c773ec3d2a9a9e01ac8a93646fe95cfe call \
ci --source DIR_PATHfunc (m *MyModule) Example(ctx context.Context, source *dagger.Directory) string {
return dag.
Browserext().
Ci(ctx, source)
}@function
async def example(source: dagger.Directory) -> str:
return await (
dag.browser_ext()
.ci(source)
)@func()
async example(source: Directory): Promise<string> {
return dag
.browserExt()
.ci(source)
}