Example #1
0
 @NotNull
 public static Pair<List<String>, String> getLibLocationAndTargetForProject(
     @NotNull Module module) {
   K2JSModuleComponent jsModuleComponent = K2JSModuleComponent.getInstance(module);
   String pathToJavaScriptLibrary = jsModuleComponent.getPathToJavaScriptLibrary();
   String basePath = ModuleRootManager.getInstance(module).getContentRoots()[0].getPath();
   List<String> pathsToJSLib = Lists.newArrayList();
   if (pathToJavaScriptLibrary != null) {
     pathsToJSLib.add(basePath + pathToJavaScriptLibrary);
   }
   return Pair.create(pathsToJSLib, jsModuleComponent.getEcmaVersion().toString());
 }
Example #2
0
 public static boolean isJsModule(@NotNull Module module) {
   return K2JSModuleComponent.getInstance(module).isJavaScriptModule();
 }