Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var generateAndReturnManifest = (project) => {
var manifest = path.join(project, config('manifest'));
return generator.findSystems(project).then(function (all_systems) {
return generator.render({ systems: all_systems }, manifest).then(function() {
return new Manifest(project);
});
});
};
var generateAndReturnManifest = (folder) => {
var manifest = path.join(folder, config('manifest'));
return generator.findSystems(folder).then(function (all_systems) {
return generator.render({ systems: all_systems }, manifest).then(function() {
return new Manifest(folder);
});
});
};
var generate_manifest = (dir, data) => {
var file = path.join(dir, config('manifest'));
return generator.render(data, file).then(function() {
var manifest = new Manifest(dir);
return manifest;
});
};
var generateAndReturnManifest = (project) => {
var manifest = path.join(project, config('manifest'));
generator.render({
systems: generator.findSystems(project),
}, manifest);
return new Manifest(project);
};
var generateAndReturnManifest = (project) => {
var manifest = path.join(project, config('manifest'));
return generator.findSystems(project)
.then(function (all_systems) {
return generator.render({ systems: all_systems }, manifest)
.then(function() {
return new Manifest(project);
});
});
};