UNPKG

@versionone/ui

Version:

Open-source and community supported collection of common UI components built with React. As an open-sourced and community supported project, VersionOne UI is not formally supported by VersionOne.

14 lines (10 loc) 329 B
const path = require('path'); const fs = require('fs'); const normalizedPath = path.join(__dirname, 'scripts'); fs .readdirSync(normalizedPath) .filter(isJavaScriptFile) .forEach((file) => require(path.join(normalizedPath, file))); function isJavaScriptFile(file) { return file.endsWith('.js'); }