How to use the hops-config.buildConfig function in hops-config

To help you get started, we’ve selected a few hops-config 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 xing / hops / packages / build-config / index.js View on Github external
'use strict';

var hopsConfig = require('hops-config');

module.exports = exports = {
  get build() {
    return require(exports.buildConfig);
  },
  get develop() {
    return require(exports.developConfig);
  },
  get node() {
    return require(exports.nodeConfig);
  },
  buildConfig: hopsConfig.buildConfig
    ? hopsConfig.buildConfig
    : require.resolve('./configs/build'),
  developConfig: hopsConfig.developConfig
    ? hopsConfig.developConfig
    : require.resolve('./configs/develop'),
  nodeConfig: hopsConfig.nodeConfig
    ? hopsConfig.nodeConfig
    : require.resolve('./configs/node'),
};
github xing / hops / packages / build-config / index.js View on Github external
'use strict';

var hopsConfig = require('hops-config');

module.exports = exports = {
  get build() {
    return require(exports.buildConfig);
  },
  get develop() {
    return require(exports.developConfig);
  },
  get node() {
    return require(exports.nodeConfig);
  },
  buildConfig: hopsConfig.buildConfig
    ? hopsConfig.buildConfig
    : require.resolve('./configs/build'),
  developConfig: hopsConfig.developConfig
    ? hopsConfig.developConfig
    : require.resolve('./configs/develop'),
  nodeConfig: hopsConfig.nodeConfig
    ? hopsConfig.nodeConfig
    : require.resolve('./configs/node'),
};