-
- All Implemented Interfaces:
-
java.io.Serializable
public class NpmProject implements Serializable
Basic info for NpmProject created from compilation. This class contains only basic info.
More info can be obtained from KotlinCompilationNpmResolution, which is available after project resolution (after KotlinNpmInstallTask execution).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
NpmProject.Companion
-
Field Summary
Fields Modifier and Type Field Description private final String
compilationName
private final String
name
private final transient NodeJsRootExtension
nodeJs
private final File
dir
private final KotlinJsTargetDsl
target
private final Project
project
private final File
nodeModulesDir
private final File
packageJsonFile
private final String
packageJsonTaskName
private final KotlinPackageJsonTask
packageJsonTask
private final String
packageJsonTaskPath
private final File
dist
private final String
main
private final File
externalsDirRoot
private final File
externalsDir
private final String
publicPackageJsonTaskName
private final transient KotlinJsCompilation
compilation
-
Constructor Summary
Constructors Constructor Description NpmProject(KotlinJsCompilation compilation)
-
Method Summary
Modifier and Type Method Description final String
getCompilationName()
final String
getName()
final NodeJsRootExtension
getNodeJs()
final File
getDir()
final KotlinJsTargetDsl
getTarget()
final Project
getProject()
final File
getNodeModulesDir()
final File
getPackageJsonFile()
final String
getPackageJsonTaskName()
final KotlinPackageJsonTask
getPackageJsonTask()
final String
getPackageJsonTaskPath()
final File
getDist()
final String
getMain()
final File
getExternalsDirRoot()
final File
getExternalsDir()
final String
getPublicPackageJsonTaskName()
final KotlinJsCompilation
getCompilation()
final Unit
useTool(ExecSpec exec, String tool, List<String> nodeArgs, List<String> args)
final String
require(String request)
Require request nodejs module and return canonical path to it's main js file. String
toString()
-
-
Constructor Detail
-
NpmProject
NpmProject(KotlinJsCompilation compilation)
-
-
Method Detail
-
getCompilationName
final String getCompilationName()
-
getNodeJs
final NodeJsRootExtension getNodeJs()
-
getTarget
final KotlinJsTargetDsl getTarget()
-
getProject
final Project getProject()
-
getNodeModulesDir
final File getNodeModulesDir()
-
getPackageJsonFile
final File getPackageJsonFile()
-
getPackageJsonTaskName
final String getPackageJsonTaskName()
-
getPackageJsonTask
final KotlinPackageJsonTask getPackageJsonTask()
-
getPackageJsonTaskPath
final String getPackageJsonTaskPath()
-
getExternalsDirRoot
final File getExternalsDirRoot()
-
getExternalsDir
final File getExternalsDir()
-
getPublicPackageJsonTaskName
final String getPublicPackageJsonTaskName()
-
getCompilation
final KotlinJsCompilation getCompilation()
-
require
final String require(String request)
Require request nodejs module and return canonical path to it's main js file.
-
-
-
-