nci/resources/projects.js
2015-04-13 01:19:42 +03:00

20 lines
394 B
JavaScript

'use strict';
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;
}));
});
module.exports = function(data) {
var projects = [{
name: 'foo'
}];
};