public class JsUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
escapeJsonForStringEmbedding(String input) |
static Optional<Arg> |
getExtraJson(HasExtraJson args,
BuildTarget target,
ActionGraphBuilder graphBuilder,
CellPathResolver cellRoots)
Wraps the
StringWithMacros coming from HasExtraJson so that it can be added to rule keys and expanded easily. |
static String |
getSourcemapPath(JsBundleOutputs jsBundleOutputs) |
static String |
getSourcemapPath(String bundleName) |
static String |
getValueForFlavor(com.google.common.collect.ImmutableMap<UserFlavor,String> map,
Flavor flavor) |
public static String getValueForFlavor(com.google.common.collect.ImmutableMap<UserFlavor,String> map, Flavor flavor)
public static String getSourcemapPath(JsBundleOutputs jsBundleOutputs)
public static Optional<Arg> getExtraJson(HasExtraJson args, BuildTarget target, ActionGraphBuilder graphBuilder, CellPathResolver cellRoots)
StringWithMacros
coming from HasExtraJson
so that it can be added to rule keys and expanded easily.