JS backend: add -meta-info command line option for cli compiler
This commit is contained in:
+1
@@ -218,6 +218,7 @@ public open class Kotlin2JsCompile() : AbstractKotlinCompile<K2JSCompilerArgumen
|
||||
args.outputFile = outputFile
|
||||
args.outputPrefix = kotlinOptions.outputPrefix
|
||||
args.outputPostfix = kotlinOptions.outputPostfix
|
||||
args.metaInfo = kotlinOptions.metaInfo
|
||||
|
||||
val kotlinJsLibsFromDependencies =
|
||||
getProject().getConfigurations().getByName("compile")
|
||||
|
||||
+8
@@ -45,10 +45,18 @@ public class K2JSCompilerMojo extends KotlinCompileMojoBase<K2JSCompilerArgument
|
||||
*/
|
||||
private String outputFile;
|
||||
|
||||
/**
|
||||
* The output metafile name
|
||||
*
|
||||
* @parameter default-value="${project.build.directory}/js/${project.artifactId}.meta.js"
|
||||
*/
|
||||
private String metaFile;
|
||||
|
||||
@Override
|
||||
protected void configureSpecificCompilerArguments(@NotNull K2JSCompilerArguments arguments) throws MojoExecutionException {
|
||||
arguments.outputFile = outputFile;
|
||||
arguments.noStdlib = true;
|
||||
arguments.metaInfo = metaFile;
|
||||
|
||||
List<String> libraries = getKotlinJavascriptLibraryFiles();
|
||||
LOG.info("libraryFiles: " + libraries);
|
||||
|
||||
Reference in New Issue
Block a user