How to use the ramda-extension.toCamelCase function in ramda-extension

To help you get started, we’ve selected a few ramda-extension examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lundegaard / react-union / boilerplates / react-union-boilerplate-liferay-ssr / tools / amdLoaderScripts.js View on Github external
R.forEach(appName => {
		const manifestFilePath = path.join(buildDirectory, appName, manifestFileName);
		const manifest = fs.readJsonSync(manifestFilePath, 'utf8');
		const hash = getHash(appName, manifest);

		fs.writeFileSync(getLiferayFilePath(appName, hash), getLoaderSource(appName, manifest), 'utf8');

		fs.appendFileSync(
			configFilePath,
			createLiferayConfigSource({
				name: appName,
				exportsIdentifier: R_.toCamelCase(appName),
				path: getLiferayContextPath(appName, hash),
			}),
			'utf8'
		);
	})(appsAvailable);
};
github lundegaard / react-union / boilerplates / react-union-boilerplate-liferay-ssr / tools / amdLoaderScripts.js View on Github external
const getLoaderSource = (appName, manifest) => {
	const paths = getEntryBundlesFromManifest(manifest);
	const loadScripts = getLoadScriptsSrc(paths);

	return `${joinByNewline(loadScripts)}\nwindow.${R_.toCamelCase(appName)} = {};\n`;
};