'use strict';
const existsSync = require('exists-sync');
const path = require('path');
const getRepoInfo = require('git-repo-info');
module.exports = {
emberCLIVersion() {
let gitPath = path.join(__dirname, '..', '..', '.git');
let output = [require('../../package.json').version];
if (existsSync(gitPath)) {
let repoInfo = getRepoInfo(gitPath);
output.push(repoInfo.branch);
output.push(repoInfo.abbreviatedSha);
}
return output.join('-');
},
isDevelopment(version) {
// match postfix SHA in dev version
return (/\b[0-9a-f]{5,40}\b/).test(version);
},
};
# |
Change |
User |
Description |
Committed |
|
#1
|
23539 |
jenbottom |
Adding the basic code for ember test appk, created with 'ember new' command |
|
|