nci/resources/projects.js

20 lines
394 B
JavaScript
Raw Normal View History

2015-04-10 19:23:52 +00:00
'use strict';
2015-04-12 22:19:42 +00:00
var _ = require('underscore'),
project = require('../lib/project');
var projects;
project.loadAll('projects', function(err, loadedProjects) {
if (err) throw err;
projects = loadedProjects;
console.log('Loaded projects: ', _(projects).map(function(project) {
return project.config.name;
}));
});
2015-04-10 19:23:52 +00:00
module.exports = function(data) {
var projects = [{
name: 'foo'
}];
};