pwabuilder-lib
Version:
PWA Builder Core Library
16 lines (10 loc) • 393 B
JavaScript
var fs = require('fs');
var path = require('path');
var transformationsPath = path.join(__dirname, 'transformations');
var modules = {};
fs.readdirSync(transformationsPath).forEach(function(file) {
var moduleName = path.basename(file, path.extname(file));
modules[moduleName] = require(path.join(transformationsPath, file));
});
module.exports = modules;
;