browserify
No long description provided.
Installation
dagger install github.com/vito/daggerverse/browserify@edeeba6b73f8873c07d30471cd1d95ad678a1581Entrypoint
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 moduleEntrypoint
Return Type
Browserify ! Example
dagger -m github.com/vito/daggerverse/browserify@edeeba6b73f8873c07d30471cd1d95ad678a1581 call \
func (m *MyModule) Example() *dagger.Browserify {
return dag.
Browserify()
}@function
def example() -> dagger.Browserify:
return (
dag.browserify()
)@func()
example(): Browserify {
return dag
.browserify()
}Types
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 moduleBrowserify 🔗
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/vito/daggerverse/browserify@edeeba6b73f8873c07d30471cd1d95ad678a1581 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/vito/daggerverse/browserify@edeeba6b73f8873c07d30471cd1d95ad678a1581 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/vito/daggerverse/browserify@edeeba6b73f8873c07d30471cd1d95ad678a1581 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()
}