e534a911f3
Prettier v2 has the following breaking changes: * enforces spaces between `function` and params * enforces trailing commas by default
10 lines
249 B
JavaScript
10 lines
249 B
JavaScript
var fs = require('fs');
|
|
|
|
var templates = fs.readdirSync(__dirname);
|
|
templates.forEach(function (template) {
|
|
if (template === 'index.js' || !/(.*)\.js$/.test(template)) {
|
|
return;
|
|
}
|
|
module.exports[RegExp.$1] = require('./' + RegExp.$1);
|
|
});
|