UNPKG

ember-cli

Version:

Command line tool for developing ambitious ember.js apps

23 lines (17 loc) 516 B
'use strict'; const { default: chalk } = require('chalk'); module.exports = function progress(heimdalljs = require('heimdalljs')) { let current = heimdalljs.current; const stack = [current.id.name]; while ((current = current.parent)) { // eslint-disable-line stack.push(current.id.name); } return stack .filter((name) => name !== 'heimdall') .reverse() .join(' > '); }; module.exports.format = function (text) { return chalk.green('building... ') + (text ? `[${text}]` : ''); };