UNPKG

pwabuilder-lib

Version:
16 lines (10 loc) 393 B
'use strict'; 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;