public class BundleMainJsDependenciesMojo
extends BundleJsDependenciesMojo
A Mojo that bundles the compile JS dependencies into a single file.
| Modifier and Type | Class and Description |
|---|---|
static class |
BundleMainJsDependenciesMojo.Companion
Companion for
class BundleMainJsDependenciesMojo |
| Modifier and Type | Field and Description |
|---|---|
static BundleMainJsDependenciesMojo.Companion |
Companion
Companion for
class BundleMainJsDependenciesMojo |
static java.lang.String |
Name
The name (goal) of this Mojo.
|
java.io.File |
extractDirectory
The directory where the dependencies are extracted to.
Defaults to
${project.build.directory}/kotlin-js-bundle/dependencies. |
java.io.File |
outputDirectory
The directory where the main bundle will be placed. Defaults to
${project.build.outputDirectory}. |
java.lang.String |
outputFilename
Filename for the main bundle, defaults to
${project.artifactId}.bundle.js |
project, session| Constructor and Description |
|---|
BundleMainJsDependenciesMojo()
A Mojo that bundles the compile JS dependencies into a single file.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDependencyScope()
Indicates that dependencies of scope
compile are bundled. |
java.io.File |
getExtractDirectory()
The directory where the dependencies are extracted to.
Defaults to
${project.build.directory}/kotlin-js-bundle/dependencies. |
java.io.File |
getOutputDirectory()
The directory where the main bundle will be placed. Defaults to
${project.build.outputDirectory}. |
java.lang.String |
getOutputFilename()
Filename for the main bundle, defaults to
${project.artifactId}.bundle.js |
kotlin.sequences.Sequence<java.io.File> |
projectJsFiles()
Resolves the main JS files for the current project.
|
void |
setExtractDirectory(java.io.File p)
The directory where the dependencies are extracted to.
Defaults to
${project.build.directory}/kotlin-js-bundle/dependencies. |
void |
setOutputDirectory(java.io.File p)
The directory where the main bundle will be placed. Defaults to
${project.build.outputDirectory}. |
void |
setOutputFilename(java.lang.String p)
Filename for the main bundle, defaults to
${project.artifactId}.bundle.js |
execute, getDependencyScope, getExtractDirectory, getOutputDirectory, getOutputFilename, getProject, getSession, projectJsFiles, setProject, setSessionpublic java.io.File extractDirectory
The directory where the dependencies are extracted to.
Defaults to ${project.build.directory}/kotlin-js-bundle/dependencies.
public java.io.File outputDirectory
The directory where the main bundle will be placed. Defaults to ${project.build.outputDirectory}.
public java.lang.String outputFilename
Filename for the main bundle, defaults to ${project.artifactId}.bundle.js
public static java.lang.String Name
The name (goal) of this Mojo.
public static BundleMainJsDependenciesMojo.Companion Companion
Companion for class BundleMainJsDependenciesMojo
class BundleMainJsDependenciesMojopublic BundleMainJsDependenciesMojo()
A Mojo that bundles the compile JS dependencies into a single file.
public java.io.File getExtractDirectory()
The directory where the dependencies are extracted to.
Defaults to ${project.build.directory}/kotlin-js-bundle/dependencies.
public void setExtractDirectory(java.io.File p)
The directory where the dependencies are extracted to.
Defaults to ${project.build.directory}/kotlin-js-bundle/dependencies.
public java.io.File getOutputDirectory()
The directory where the main bundle will be placed. Defaults to ${project.build.outputDirectory}.
public void setOutputDirectory(java.io.File p)
The directory where the main bundle will be placed. Defaults to ${project.build.outputDirectory}.
public java.lang.String getOutputFilename()
Filename for the main bundle, defaults to ${project.artifactId}.bundle.js
public void setOutputFilename(java.lang.String p)
Filename for the main bundle, defaults to ${project.artifactId}.bundle.js
public java.lang.String getDependencyScope()
Indicates that dependencies of scope compile are bundled.
public kotlin.sequences.Sequence<java.io.File> projectJsFiles()
Resolves the main JS files for the current project.