()
| 6 | |
| 7 | module.exports = { |
| 8 | emberCLIVersion() { |
| 9 | let gitPath = path.join(__dirname, '..', '..', '.git'); |
| 10 | let output = [require('../../package.json').version]; |
| 11 | |
| 12 | if (fs.existsSync(gitPath)) { |
| 13 | let { branch, abbreviatedSha } = getRepoInfo(gitPath); |
| 14 | |
| 15 | if (branch) { |
| 16 | output.push(branch.replace(/\//g, '-')); |
| 17 | } |
| 18 | output.push(abbreviatedSha); |
| 19 | } |
| 20 | |
| 21 | return output.join('-'); |
| 22 | }, |
| 23 | |
| 24 | isDevelopment(version) { |
| 25 | // match postfix SHA in dev version |
no outgoing calls
no test coverage detected
searching dependent graphs…