How to use the @nstudio/xplat.XplatHelpers.updatePackageForXplat 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 / electron / src / utils / xplat.ts View on Github external
return (tree: Tree, context: SchematicContext) => {
      const dependencies = {};
      // dependencies[`@${getNpmScope()}/scss`] = 'file:libs/scss';
      // dependencies[`@${getNpmScope()}/web`] = 'file:xplat/web';
      return XplatHelpers.updatePackageForXplat(options, {
        dependencies,
        devDependencies: {
          electron: electronVersion,
          'electron-builder': electronBuilderVersion,
          'electron-rebuild': electronRebuildVersion,
          'electron-installer-dmg': electronInstallerDmgVersion,
          'electron-packager': electronPackagerVersion,
          'electron-reload': electronReloadVersion,
          'electron-store': electronStoreVersion,
          'electron-updater': electronUpdaterVersion,
          'npm-run-all': npmRunAllVersion,
          'wait-on': waitOnVersion
        }
      })(tree, context);
    };
  }
github nstudio / xplat / packages / ionic / src / utils / xplat.ts View on Github external
dependencies[
          '@ionic-native/splash-screen'
        ] = ionicNativeSplashScreenVersion;
        dependencies['@ionic-native/status-bar'] = ionicNativeStatusbarVersion;
      } else {
        dependencies['@ionic/core'] = ionicCore;
      }

      const devDependencies = {};
      devDependencies['@capacitor/cli'] = capacitorCore;
      if (!options.skipDependentPlatformFiles) {
        // using core deps
        devDependencies['@stencil/core'] = stencilCore;
        devDependencies['@stencil/sass'] = stencilSass;
      }
      return XplatHelpers.updatePackageForXplat(options, {
        dependencies: {
          ...dependencies
        },
        devDependencies: {
          ...devDependencies
        }
      })(tree, context);
    };
  }
github nstudio / xplat / packages / electron-angular / src / utils / xplat.ts View on Github external
return (tree: Tree, context: SchematicContext) => {
      return XplatHelpers.updatePackageForXplat(options, {
        // nothing extra needed at moment
        devDependencies: {
          '@nrwl/angular': nxVersion,
          '@nstudio/angular': xplatVersion
        }
      })(tree, context);
    };
  }
github nstudio / xplat / packages / angular / src / utils / xplat.ts View on Github external
devDependencies[`@angular/compiler-cli`] = angularVersion;
        devDependencies[`@angular/language-service`] = angularVersion;
        devDependencies[`@angular-devkit/build-angular`] = angularDevkitVersion;
        devDependencies[`codelyzer`] = codelyzerVersion;
      }

      if (!packageJson.devDependencies['@nrwl/angular']) {
        packageJson.devDependencies['@nrwl/angular'] = nxVersion;
      }
      if (!packageJson.devDependencies['@nstudio/web']) {
        packageJson.devDependencies['@nstudio/web'] = xplatVersion;
      }

      dependencies[`@${getNpmScope()}/scss`] = 'file:libs/scss';

      return XplatHelpers.updatePackageForXplat(options, {
        dependencies: {
          ...dependencies,
          '@ngx-translate/core': ngxTranslateVersion,
          '@ngx-translate/http-loader': ngxTranslateHttpLoaderVersion,
          'reflect-metadata': reflectMetadataVersion
        },
        devDependencies
      })(tree, context);
    };
  }
github nstudio / xplat / packages / web / src / utils / xplat.ts View on Github external
return (tree: Tree, context: SchematicContext) => {
      const dependencies = {};
      dependencies[`@${getNpmScope()}/scss`] = 'file:libs/scss';

      return XplatHelpers.updatePackageForXplat(options, {
        dependencies
      })(tree, context);
    };
  }
github nstudio / xplat / packages / nativescript / src / utils / xplat.ts View on Github external
return (tree: Tree, context: SchematicContext) => {
      return XplatHelpers.updatePackageForXplat(options, {
        dependencies: {
          'nativescript-theme-core': nsThemeCoreVersion,
          'tns-core-modules': nsCoreVersion
        },
        devDependencies: {
          'node-sass': nodeSassVersion,
          'terser-webpack-plugin': terserWebpackVersion,
          'tns-platform-declarations': nsCoreVersion
        }
      })(tree, context);
    };
  }
github nstudio / xplat / packages / ionic-angular / src / utils / xplat.ts View on Github external
devDependencies[`@angular/cli`] = angularVersion;
        devDependencies[`@angular/compiler-cli`] = angularVersion;
        devDependencies[`@angular/language-service`] = angularVersion;
        devDependencies[`codelyzer`] = codelyzerVersion;
      }

      if (options.useXplat) {
        dependencies['@ngx-translate/core'] = ngxTranslateVersion;
        dependencies[
          '@ngx-translate/http-loader'
        ] = ngxTranslateHttpLoaderVersion;
      }
      dependencies['reflect-metadata'] = reflectMetadataVersion;

      return XplatHelpers.updatePackageForXplat(options, {
        dependencies: {
          ...dependencies,
          '@ionic/angular': ionicAngularVersion
        },
        devDependencies: {
          ...devDependencies,
          '@angular-devkit/architect': ngDevKitArchitect,
          '@angular-devkit/build-angular': ngDevKitBuild,
          '@angular-devkit/core': ngDevKitCore,
          '@angular-devkit/schematics': ngDevKitSchematics,
          '@ionic/angular-toolkit': ionicAngularToolkitVersion,
          '@types/jasmine': '~2.8.8',
          '@types/jasminewd2': '~2.0.3',
          codelyzer: '~4.5.0',
          'jasmine-core': '~2.99.1',
          'jasmine-spec-reporter': '~4.2.1',
github nstudio / xplat / packages / nativescript-angular / src / utils / xplat.ts View on Github external
return (tree: Tree, context: SchematicContext) => {
      return XplatHelpers.updatePackageForXplat(options, {
        dependencies: {
          'nativescript-angular': nsNgVersion,
          'nativescript-ngx-fonticon': nsNgFonticonVersion,
          'tns-core-modules': nsCoreVersion
        },
        devDependencies: {
          'node-sass': nodeSassVersion
        }
      })(tree, context);
    };
  }