コード例 #1
0
ファイル: shrinkwrap.js プロジェクト: Haiwen01/cortex
exports.add_engines = function (shrinkwrap) {
  var engines = shrinkwrap.engines || (shrinkwrap.engines = {});
  var version = neuron.version();
  engines.neuron = {
    'from': 'neuron@' + version,
    'version': version
  };
};
コード例 #2
0
ファイル: init.js プロジェクト: cortexjs/cortex
init._generate = function (options, callback) {
  var self = this;
  generator(options.pkg, {
    override: options._force === 'overriding',
    cwd: options.cwd,
    neuron_version: neuron.version(),
    license: options.pkg.license,
    template: options.pkg.template
  }, callback);
};
コード例 #3
0
ファイル: build.js プロジェクト: elrrrrrrr/cortex
build.build_engine = function (options, callback) {
  if (options.install) {
    return callback(null);
  }
  var dest = node_path.join(options.dest, 'neuron', neuron.version(), 'neuron.js');
  var neuron_js = node_path.join(options.dest, 'neuron.js');

  // Chrome on Windows could not open a symlink of a javascript file,
  // so we just write both of the files, and use no symlink.
  async.each([dest, neuron_js], function (to, done) {
    neuron.write(to, done, true);
  }, callback);
};