UNPKG

534 BJavaScriptView Raw
1const INFERRABLE_STAGES = [
2 {
3 name: 'development',
4 inferRegex: /-(dev|development|uat|tst|test|qa)$/
5 },
6 {
7 name: 'staging',
8 inferRegex: /-(stg|staging)$/
9 },
10 {
11 name: 'production',
12 inferRegex: /-(prd|prod|production|admin|demo)$/
13 }
14]
15
16const INFERRABLE_STAGE_NAMES = INFERRABLE_STAGES.map((stage) => stage.name)
17const STAGE_NAMES = ['review'].concat(INFERRABLE_STAGE_NAMES)
18
19exports.inferrableStages = INFERRABLE_STAGES
20exports.inferrableStageNames = INFERRABLE_STAGE_NAMES
21exports.names = STAGE_NAMES