var exec = require("child_process").exec;
var path = require("path");

exports.description = "A standard starting-point for news app development at the Seattle Times."
exports.template = function(grunt, init, done) {
  //prelims
  var here = path.basename(process.cwd());

  //process
  init.process(init.defaults, [
    init.prompt("author_name"),
    init.prompt("app_name", here),
    init.prompt("app_description"),
    init.prompt("github_repo", "seattletimes/" + here)
  ], function(err, props) {
    //add environment variables, dynamic properties
    
    var root = init.filesToCopy(props);
    init.copyAndProcess(root, props);
    grunt.file.mkdir("data");

    //install node modules
    console.log("Installing Node modules...");
    exec("npm install --cache-min 999999", done);
  });
};

var exec = require("child_process").exec;
var path = require("path");

exports.description = "A standard starting-point for news app development at the Seattle Times."
exports.template = function(grunt, init, done) {
  //prelims
  var here = path.basename(process.cwd());

  //process
  init.process(init.defaults, [
    init.prompt("author_name"),
    init.prompt("app_name", here),
    init.prompt("app_description"),
    init.prompt("github_repo", "seattletimes/" + here)
  ], function(err, props) {
    //add environment variables, dynamic properties
    
    var root = init.filesToCopy(props);
    init.copyAndProcess(root, props, { noProcess: "src/assets/**" });
    grunt.file.mkdir("data");

    //install node modules
    console.log("Installing Node modules...");
    exec("npm install --cache-min 999999", done);
  });
};

Mark assets as `noProcess` to keep it from screwing up the PNG
Mark assets as `noProcess` to keep it from screwing up the PNG
