How to use undertaker-registry - 2 common examples

To help you get started, we’ve selected a few undertaker-registry 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 ng-tools / ng-factory / lib / config.js View on Github external
function ConfigRegistry(config) {

  DefaultRegistry.call(this);

  // Get the current working directory of the user's current project
  config.cwd = cwd();
  // Load the package.json in the base of the user's current project
  config.pkg = loadJSON('package.json', {cwd: config.cwd});
  if(config.pkg.ngFactory) {
    log(util.format('Using ng-factory config from %s', chalk.magenta(tildifyCwd('package.json', {cwd: config.cwd}))));
    this.config = _.merge(config, checkConfig(config.pkg.ngFactory));
  } else {
    log(util.format('Using ng-factory config file %s', chalk.magenta(tildifyCwd('ngfactory.json', {cwd: config.cwd}))));
    this.config = _.merge(config, checkConfig(loadJSON('ngfactory.json', {cwd: config.cwd})), {file: true});
  }

}
github acierto / gulp-release / registries / PreTagAndPuhRegistry.js View on Github external
function PreTagAndPushRegistry() {
    DefaultRegistry.call(this);
}

undertaker-registry

Default registry in gulp 4.

MIT
Latest version published 3 years ago

Package Health Score

68 / 100
Full package analysis

Popular undertaker-registry functions