MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / emberCLIVersion

Function emberCLIVersion

lib/utilities/version-utils.js:8–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7module.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

Callers 10

runFunction · 0.85
generateMethod · 0.85
project-test.jsFile · 0.85
help.jsFile · 0.85
help.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…