How to use the ern-container-gen.generatePluginsMustacheViews function in ern-container-gen

To help you get started, we’ve selected a few ern-container-gen examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github electrode-io / electrode-native / ern-container-gen-android / src / AndroidGenerator.ts View on Github external
public async buildAndroidPluginsViews(
    plugins: PackagePath[],
    mustacheView: any
  ): Promise {
    mustacheView.plugins = await generatePluginsMustacheViews(
      plugins,
      'android'
    )
    const reactNativeCodePushPlugin = _.find(
      plugins,
      p => p.basePath === 'react-native-code-push'
    )
    if (reactNativeCodePushPlugin) {
      mustacheView.isCodePushPluginIncluded = true
    }
  }
}
github electrode-io / electrode-native / ern-container-gen-ios / src / IosGenerator.ts View on Github external
public async buildiOSPluginsViews(
    plugins: PackagePath[],
    mustacheView: any
  ): Promise {
    mustacheView.plugins = await generatePluginsMustacheViews(plugins, 'ios')
  }