How to use the @nstudio/xplat.XplatHelpers.addPlatformFiles function in @nstudio/xplat

To help you get started, we’ve selected a few @nstudio/xplat 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 nstudio / xplat / packages / web-angular / src / schematics / xplat / index.ts View on Github external
(tree: Tree, context: SchematicContext) => {
      const xplatFolderName = XplatHelpers.getXplatFoldername('web', 'angular');
      // console.log('xplatName:', xplatName);
      return options.skipDependentPlatformFiles
        ? noop()
        : XplatHelpers.addPlatformFiles(options, xplatFolderName)(
            tree,
            context
          );
    },
    (tree: Tree, context: SchematicContext) => {
github nstudio / xplat / packages / nativescript-angular / src / schematics / xplat / index.ts View on Github external
(tree: Tree, context: SchematicContext) => {
      const xplatFolderName = XplatHelpers.getXplatFoldername(
        'nativescript',
        'angular'
      );
      // console.log('xplatName:', xplatName);
      // console.log('options:', options);
      return options.skipDependentPlatformFiles
        ? noop()
        : XplatHelpers.addPlatformFiles(options, xplatFolderName)(
            tree,
            context
          );
    },
    XplatHelpers.updateTsConfigPaths(options, { framework: 'angular' }),
github nstudio / xplat / packages / ionic-angular / src / schematics / xplat / index.ts View on Github external
(tree: Tree, context: SchematicContext) => {
      const xplatFolderName = XplatHelpers.getXplatFoldername(
        'ionic',
        'angular'
      );
      // console.log('xplatName:', xplatName);
      return options.skipDependentPlatformFiles
        ? noop()
        : XplatHelpers.addPlatformFiles(options, xplatFolderName)(
            tree,
            context
          );
    },
    XplatHelpers.updateTsConfigPaths(options, { framework: 'angular' }),
github nstudio / xplat / packages / electron-angular / src / schematics / xplat / index.ts View on Github external
(tree: Tree, context: SchematicContext) => {
      const xplatFolderName = XplatHelpers.getXplatFoldername(
        'electron',
        'angular'
      );
      // console.log('xplatName:', xplatName);
      return options.skipDependentPlatformFiles
        ? noop()
        : XplatHelpers.addPlatformFiles(options, xplatFolderName)(
            tree,
            context
          );
    },
    XplatHelpers.updateTsConfigPaths(options, { framework: 'angular' }),
github nstudio / xplat / packages / web / src / schematics / xplat / index.ts View on Github external
(tree: Tree, context: SchematicContext) => {
      if (tree.exists('/xplat/web/scss/_index.scss')) {
        // may have already generated support
        return noop()(tree, context);
      } else {
        return XplatHelpers.addPlatformFiles(options, 'web')(tree, context);
      }
    },
    XplatHelpers.updateTsConfigPaths(options),
github nstudio / xplat / packages / nativescript / src / schematics / xplat / index.ts View on Github external
export default function(options: XplatHelpers.Schema) {
  return chain([
    prerun(options),
    options.skipDependentPlatformFiles
      ? noop()
      : XplatHelpers.addPlatformFiles(options, 'nativescript'),
    XplatNativeScriptHelpers.updateRootDeps(options),
    XplatNativeScriptHelpers.updatePrettierIgnore()
  ]);
}