All Downloads are FREE. Search and download functionalities are using the official Maven repository.

.mdoc-js-interfaces.2.5.2.source-code.ScalajsConfig Maven / Gradle / Ivy

There is a newer version: 2.6.2
Show newest version
package mdoc.js.interfaces;

public class ScalajsConfig {
	public ModuleType moduleType;
	public boolean fullOpt;
	public boolean sourceMap;
	public boolean batchMode;
	public boolean closureCompiler;

	public ScalajsConfig() {
	}
	
	public ScalajsConfig withModuleKind(ModuleType kind) {
		if(kind == ModuleType.ESModule)
			this.moduleType = ModuleType.ESModule;
		else if (kind == ModuleType.NoModule)
			this.moduleType = ModuleType.NoModule;
		else if (kind == ModuleType.CommonJSModule)
			this.moduleType = ModuleType.CommonJSModule;
		return this;
	}

	public ScalajsConfig withOptimized(boolean enabled) {
		this.fullOpt = enabled;
		return this;
	}

	public ScalajsConfig withSourceMap(boolean enabled) {
		this.sourceMap = enabled;
		return this;
	}

	public ScalajsConfig withBatchMode(boolean enabled) {
		this.batchMode = enabled;
		return this;
	}

	public ScalajsConfig withClosureCompiler(boolean enabled) {
		this.closureCompiler = enabled;
		return this;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy