@relative-ci/agent
Version:
Send bundle stats and CI build information to RelativeCI
15 lines (13 loc) • 1.49 kB
JavaScript
const SETUP_INFO = 'Read more about RelativeCI agent setup at https://relative-ci.com/documentation/setup.';
const VALIDATE_ERROR = 'Invalid stats structure.';
const INGEST_ERROR = 'Error ingesting data!';
const INGEST_INVALID_DATA = 'Ingest API responded with invalid data';
const CLI_MISSING_CONFIGURATION_ERROR = `relativeci.config.js file is missing! ${SETUP_INFO}`;
const CLI_INVALID_CONFIGURATION_ERROR = `The path to your webpack stats file is missing! ${SETUP_INFO}`;
const CLI_MISSING_STATS_FILE_ERROR = `The webpack stats file does not exists! ${SETUP_INFO}`;
const AGENT_MISSING_KEY_ERROR = `"key" parameter is missing, make sure to set RELATIVE_CI_KEY environment variable! ${SETUP_INFO}`;
const AGENT_MISSING_SLUG_ERROR = `"slug" parameter is missing, make sure to set RELATIVE_CI_SLUG environment variable (RELATIVE_CI_SLUG=organization-a/project-a) if you are not using a supported CI service! ${SETUP_INFO}`;
const AGENT_MISSING_COMMIT_ERROR = `"commit" environment variable is missing, make sure the agent is setup correctly! ${SETUP_INFO}`;
const AGENT_MISSING_BRANCH_ERROR = `"branch" environment variable is missing, make sure the agent is setup correctly! ${SETUP_INFO}`;
export { AGENT_MISSING_BRANCH_ERROR, AGENT_MISSING_COMMIT_ERROR, AGENT_MISSING_KEY_ERROR, AGENT_MISSING_SLUG_ERROR, CLI_INVALID_CONFIGURATION_ERROR, CLI_MISSING_CONFIGURATION_ERROR, CLI_MISSING_STATS_FILE_ERROR, INGEST_ERROR, INGEST_INVALID_DATA, VALIDATE_ERROR };
//# sourceMappingURL=en.js.map