exports.add_engines = function (shrinkwrap) { var engines = shrinkwrap.engines || (shrinkwrap.engines = {}); var version = neuron.version(); engines.neuron = { 'from': 'neuron@' + version, 'version': version }; };
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); };
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); };