Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/bs / dist / scripts / shell / params / params.js
Size: Mime:
// --- DEPENDENCIES ---
const resolve = require('path').resolve;
const shell = require('shelljs');
const { resolveToRoot } = require('../../../config/resolveToRoot');
// const FLAGS_BY_NAME = require('../../../config/env/ENV_FLAGS')
const simpleAutofix = require('./simpleAutofix');
const NODE_VERSION = require('./NODE_VERSION');
// const os = require('./os')
// ------- GATHER ALL INFORMATION PROVIDED ------
function getWebhooks() {
    const ISSUE = ['comment_created', 'created', 'updated'];
    const REPO = [
        'commit_status_updated',
        'commit_comment_created',
        'created',
        'push',
    ];
    const PULL_REQUEST = [
        'approved',
        'updated',
        'fulfilled',
        'comment_created',
        'comment_updated',
        'rejected',
        'created',
        'unapproved',
        'comment_deleted',
    ];
    const WEBHOOK_EVENTS = {
        ISSUE,
        REPO,
        PULL_REQUEST,
    };
    const BITBUCKET_WEBHOOKS = {
        REPO: REPO.map(name => 'repo:' + name),
        ISSUE: ISSUE.map(name => 'issues:' + name),
        PULL_REQUEST: PULL_REQUEST.map(name => 'pullrequest:' + name),
    };
    return { WEBHOOK_EVENTS, BITBUCKET_WEBHOOKS };
}
const WEBHOOKS = getWebhooks();
// @TODO autofixTypes IN modules/composition - just it requires babel...
const { env } = process;
const { WEBHOOK_EVENTS, BITBUCKET_WEBHOOKS } = WEBHOOKS;
const ENVIRONMENT = Object.assign({}, env, { WEBHOOK_EVENTS }, BITBUCKET_WEBHOOKS);
// @NOTE fwf autofixes already
simpleAutofix(ENVIRONMENT);
console.log(ENVIRONMENT);
const exported = Object.assign({}, ENVIRONMENT, { ENVIRONMENT,
    // deps
    resolve,
    shell }, shell, { resolveToRoot,
    NODE_VERSION });
module.exports = exported;
//# sourceMappingURL=params.js.map