kopia lustrzana https://github.com/c9/core
15 wiersze
311 B
JavaScript
15 wiersze
311 B
JavaScript
![]() |
var git = require("./git");
|
||
|
var hostname = require("./hostname");
|
||
|
|
||
|
exports.load = function(root) {
|
||
|
var manifest = require(root + "/package.json");
|
||
|
manifest.revision =
|
||
|
manifest.revision ||
|
||
|
git.getHeadRevisionSync(root);
|
||
|
|
||
|
manifest.hostname = hostname.get();
|
||
|
|
||
|
return manifest;
|
||
|
};
|
||
|
|