browserify
No long description provided.
Installation
dagger install github.com/matipan/vito-daggerverse/browserify@8ebfa75424e0b82ecccb62025a9581a87c243071Entrypoint
Return Type
Browserify ! Example
dagger -m github.com/matipan/vito-daggerverse/browserify@8ebfa75424e0b82ecccb62025a9581a87c243071 call \
func (m *MyModule) Example() *dagger.Browserify {
return dag.
Browserify()
}@function
def example() -> dagger.Browserify:
return (
dag.browserify()
)@func()
example(): Browserify {
return dag
.browserify()
}Entrypoint
Return Type
Package !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | String ! | - | No description provided |
| version | String ! | - | No description provided |
| binding | String ! | - | No description provided |
Example
Function Package.Constructor is not accessible from the browserify moduleFunction Package.Constructor is not accessible from the browserify moduleFunction Package.Constructor is not accessible from the browserify moduleFunction Package.Constructor is not accessible from the browserify moduleTypes
Browserify 🔗
withPackage() 🔗
Installs a package that will be globally bound as window..
Return Type
Browserify !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | String ! | - | No description provided |
| version | String | - | No description provided |
| binding | String ! | - | No description provided |
Example
dagger -m github.com/matipan/vito-daggerverse/browserify@8ebfa75424e0b82ecccb62025a9581a87c243071 call \
with-package --name string --binding stringfunc (m *MyModule) Example(name string, binding string) *dagger.Browserify {
return dag.
Browserify().
WithPackage(name, binding)
}@function
def example(name: str, binding: str) -> dagger.Browserify:
return (
dag.browserify()
.with_package(name, binding)
)@func()
example(name: string, binding: string): Browserify {
return dag
.browserify()
.withPackage(name, binding)
}bundle() 🔗
Generates a bundle.js file from the configured packages.
Return Type
File ! Example
dagger -m github.com/matipan/vito-daggerverse/browserify@8ebfa75424e0b82ecccb62025a9581a87c243071 call \
bundlefunc (m *MyModule) Example() *dagger.File {
return dag.
Browserify().
Bundle()
}@function
def example() -> dagger.File:
return (
dag.browserify()
.bundle()
)@func()
example(): File {
return dag
.browserify()
.bundle()
}main() 🔗
The main.js file passed to browserify.
Exposed for troubleshooting.
Return Type
String ! Example
dagger -m github.com/matipan/vito-daggerverse/browserify@8ebfa75424e0b82ecccb62025a9581a87c243071 call \
mainfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Browserify().
Main(ctx)
}@function
async def example() -> str:
return await (
dag.browserify()
.main()
)@func()
async example(): Promise<string> {
return dag
.browserify()
.main()
}Package 🔗
name() 🔗
Return Type
String ! Example
Function BrowserifyPackage.name is not accessible from the browserify moduleFunction BrowserifyPackage.name is not accessible from the browserify moduleFunction BrowserifyPackage.name is not accessible from the browserify moduleFunction BrowserifyPackage.name is not accessible from the browserify moduleversion() 🔗
Return Type
String ! Example
Function BrowserifyPackage.version is not accessible from the browserify moduleFunction BrowserifyPackage.version is not accessible from the browserify moduleFunction BrowserifyPackage.version is not accessible from the browserify moduleFunction BrowserifyPackage.version is not accessible from the browserify modulebinding() 🔗
Return Type
String ! Example
Function BrowserifyPackage.binding is not accessible from the browserify moduleFunction BrowserifyPackage.binding is not accessible from the browserify moduleFunction BrowserifyPackage.binding is not accessible from the browserify moduleFunction BrowserifyPackage.binding is not accessible from the browserify module