Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
angular-utils-cli / src / commons / BuildProjectTask.js
Size: Mime:
var CommandExecutor = require('./CommandExecutor')
const chalk = require('chalk');


function BuildProjectTask(projectName, projectRoot, prod){
    this.projectName = projectName;
    this.projectRoot = projectRoot;
    this.prod = prod;

    let cmd = "ng build " + projectName;
    if (this.prod){
        cmd = cmd + " --prod";
    } 
    this.runner = (new CommandExecutor).create(cmd, this.projectRoot, " * Building " + this.projectName);

}

BuildProjectTask.prototype.getRunner = function() {
    //console.log("Starting build for " + chalk.green(this.projectName));
    return this.runner;
}

module.exports = BuildProjectTask;