StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
StackGenVis/frontend/node_modules/base-config-process/lib/fields/create.js

42 lines
790 B

'use strict';
var path = require('path');
var debug = require('debug')('base:cli:process');
/**
* Create the given template collections.
*
* ```json
* {
* "name": "my-project",
* "verb": {
* "create": {
* "pages": {
* "cwd": "templates/pages"
* },
* "posts": {
* "cwd": "templates/posts"
* }
* }
* }
* }
* ```
* @name cwd
* @api public
*/
module.exports = function(app) {
return function(collections, key, config, next) {
debug('command > %s: "%j"', key, collections);
for (var prop in collections) {
var options = collections[prop];
if (typeof options.cwd === 'string') {
options.cwd = path.resolve(options.cwd);
}
app.create(prop, options);
}
next();
};
};