How to use the @ui5/fs.fsInterface function in @ui5/fs

To help you get started, we’ve selected a few @ui5/fs 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 SAP / ui5-builder / lib / tasks / createDebugFiles.js View on Github external
module.exports = async function({workspace, options}) {
	let allResources;
	if (workspace.byGlobSource) { // API only available on duplex collections
		allResources = await workspace.byGlobSource(options.pattern);
	} else {
		allResources = await workspace.byGlob(options.pattern);
	}
	return dbg({
		fs: fsInterface(workspace),
		resources: allResources
	}).then((processedResources) => {
		return Promise.all(processedResources.map((resource) => {
			return workspace.write(resource);
		}));
	});
};
github SAP / ui5-builder / lib / tasks / buildThemes.js View on Github external
}).then((resources) => {
		return themeBuilder({
			resources,
			fs: fsInterface(combo),
			options: {
				compress
			}
		});
	}).then((processedResources) => {
		return Promise.all(processedResources.map((resource) => {