1
0
mirror of synced 2025-12-25 02:17:36 -05:00

add convience props to context and put supported ops in a separate module

This commit is contained in:
Sarah Schneider
2021-06-14 16:24:48 -04:00
parent 47d78cc105
commit d96fa5e2f0
4 changed files with 14 additions and 10 deletions

View File

@@ -21,6 +21,7 @@ const { supported } = require('../../lib/enterprise-server-releases')
const getIfversionConditionals = require('../helpers/get-ifversion-conditionals')
const enterpriseServerVersions = Object.keys(allVersions).filter(v => v.startsWith('enterprise-server@'))
const versionShortNames = Object.values(allVersions).map(v => v.shortName)
const allowedVersionOperators = require('../../lib/liquid-tags/ifversion-supported-operators')
const rootDir = path.join(__dirname, '../..')
const contentDir = path.join(rootDir, 'content')
@@ -33,7 +34,6 @@ const learningTracks = path.join(rootDir, 'data/learning-tracks')
const languageCodes = Object.keys(languages)
const allowedVersionOperators = ['>','<','=','!=']
const versionShortNameExceptions = ['ghae-next', 'ghae-issue-']
// WARNING: Complicated RegExp below!