browserify
Generates a bundle.js file from configured npm packages using Browserify.
Installation
dagger install github.com/vito/daggerverse/browserify@94248510329310952e8a1661e2745657bcac7ac8
Entrypoint
Return Type
Browserify
Example
dagger -m github.com/vito/daggerverse/browserify@94248510329310952e8a1661e2745657bcac7ac8 call \
func (m *myModule) example() *Browserify {
return dag.
Browserify()
}
@function
def example() -> dag.Browserify:
return (
dag.browserify()
)
@func()
example(): Browserify {
return dag
.browserify()
}
Types
Browserify 🔗
packages() 🔗
Return Type
[Package ! ] !
Example
dagger -m github.com/vito/daggerverse/browserify@94248510329310952e8a1661e2745657bcac7ac8 call \
packages
func (m *myModule) example() []*BrowserifyPackage {
return dag.
Browserify().
Packages()
}
@function
def example() -> List[dag.BrowserifyPackage]:
return (
dag.browserify()
.packages()
)
@func()
example(): BrowserifyPackage[] {
return dag
.browserify()
.packages()
}
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 ! | "latest" | +optional |
binding | String ! | - | No description provided |
Example
dagger -m github.com/vito/daggerverse/browserify@94248510329310952e8a1661e2745657bcac7ac8 call \
with-package --name string --version string --binding string
func (m *myModule) example(name string, version string, binding string) *Browserify {
return dag.
Browserify().
WithPackage(name, version, binding)
}
@function
def example(name: str, version: str, binding: str) -> dag.Browserify:
return (
dag.browserify()
.with_package(name, version, binding)
)
@func()
example(name: string, version: string, binding: string): Browserify {
return dag
.browserify()
.withPackage(name, version, binding)
}
bundle() 🔗
Generates a bundle.js file from the configured packages.
Return Type
File !
Example
dagger -m github.com/vito/daggerverse/browserify@94248510329310952e8a1661e2745657bcac7ac8 call \
bundle
func (m *myModule) example() *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.
Return Type
String !
Example
dagger -m github.com/vito/daggerverse/browserify@94248510329310952e8a1661e2745657bcac7ac8 call \
main
func (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 module
Function BrowserifyPackage.name is not accessible from the browserify module
Function BrowserifyPackage.name is not accessible from the browserify module
Function BrowserifyPackage.name is not accessible from the browserify module
version() 🔗
Return Type
String !
Example
Function BrowserifyPackage.version is not accessible from the browserify module
Function BrowserifyPackage.version is not accessible from the browserify module
Function BrowserifyPackage.version is not accessible from the browserify module
Function BrowserifyPackage.version is not accessible from the browserify module
binding() 🔗
Return Type
String !
Example
Function BrowserifyPackage.binding is not accessible from the browserify module
Function BrowserifyPackage.binding is not accessible from the browserify module
Function BrowserifyPackage.binding is not accessible from the browserify module
Function BrowserifyPackage.binding is not accessible from the browserify module