<commit_before>'use strict';

var runCommand = require('../utils/run-command');
var path       = require('path');
var linkEnv    = require('../tasks/link-environment');
var Project    = require('../models/project');

module.exports = function(env, platform) {

  var command = 'cordova build ' + platform;

  var msg = 'Building cordova project for platform ' + platform
              + ' with environment ' + env;

  if(env === 'production') {
    linkEnv(Project.closest(), 'ember/dist');
  } else {
    linkEnv(Project.closest(), 'ember/tmp/output');
  }

  return runCommand(command, msg);
};
<commit_msg>always link to dist since tmp/output is no longer generated anymore<commit_after>'use strict';

var runCommand = require('../utils/run-command');
var path       = require('path');
var linkEnv    = require('../tasks/link-environment');
var Project    = require('../models/project');

module.exports = function(env, platform) {

  var command = 'cordova build ' + platform;

  var msg = 'Building cordova project for platform ' + platform
              + ' with environment ' + env;

  linkEnv(Project.closest(), 'ember/dist');

  return runCommand(command, msg);
};

{'fraction_non_alphanumeric': 0.15587734241908008, 'fraction_numerical': 0.0, 'mean_word_length': 3.5019157088122603, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5748938', 'n_tokens_mistral': 340, 'n_tokens_neox': 329, 'n_words': 91}