Dagger
Search

browserify

No long description provided.

Installation

dagger install github.com/vito/daggerverse/browserify@edeeba6b73f8873c07d30471cd1d95ad678a1581

Entrypoint

Return Type
Package !
Arguments
NameTypeDefault ValueDescription
nameString !-No description provided
versionString !-No description provided
bindingString !-No description provided
Example
Function Package.Constructor is not accessible from the browserify module
Function Package.Constructor is not accessible from the browserify module
Function Package.Constructor is not accessible from the browserify module
Function Package.Constructor is not accessible from the browserify module

Entrypoint

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 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

Browserify 🔗

withPackage() 🔗

Installs a package that will be globally bound as window..

Return Type
Browserify !
Arguments
NameTypeDefault ValueDescription
nameString !-No description provided
versionString -No description provided
bindingString !-No description provided
Example
dagger -m github.com/vito/daggerverse/browserify@edeeba6b73f8873c07d30471cd1d95ad678a1581 call \
 with-package --name string --binding string
func (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 \
 bundle
func (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 \
 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()
}