UNPKG

generator-ssjs

Version:

yo generator to scaffold an [SSJS Framework](https://adessose.github.io/ssjs-webpack/) project. ## Installation ``` # install yo npm install --global yo

23 lines (19 loc) 440 B
const fs = require('fs'); const path = require('path'); const paths = fs.readdirSync( path.resolve(__dirname, '../../../polyfills'), { recursive: true } ).filter( entry => /(?<!index)\.js$/.test(entry) ); function parsePath(p) { const [type, func, ext] = p.match(/\w+/g); return { p, type, func, ext, } } const index = paths.map(entry => parsePath(entry)); module.exports = index;