UNPKG

ember-cli-ajh

Version:

Command line tool for developing ambitious ember.js apps

30 lines (26 loc) 758 B
'use strict'; var chalk = require('chalk'); var Task = require('../models/task'); var Watcher = require('../models/watcher'); var Builder = require('../models/builder'); var Promise = require('../ext/promise'); module.exports = Task.extend({ run: function(options) { this.ui.startProgress( chalk.green('Building'), chalk.green('.') ); return new Watcher({ ui: this.ui, builder: new Builder({ ui: this.ui, outputPath: options.outputPath, environment: options.environment, project: this.project }), analytics: this.analytics, options: options }).then(function() { return new Promise(function () {}); // Run until failure or signal to exit }); } });