How to use the @ckeditor/ckeditor5-dev-utils.tools.copyFile function in @ckeditor/ckeditor5-dev-utils

To help you get started, we’ve selected a few @ckeditor/ckeditor5-dev-utils 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 ckeditor / ckeditor5-dev / packages / ckeditor5-dev-tests / lib / tests.js View on Github external
const fileName = splitPath.slice( -1 ).join();
						const builtEditorPath = path.join( bundleDir, bundleConfig.path, bundleConfig.moduleName );
						const destinationPath = path.join.apply( null, [
							testPath,
							'tests',
							packageName,
							'samples',
							beginPath,
							'_assets',
							fileName
						] );

						// Copy editor builds to proper directory.
						return Promise.all( [
							tools.copyFile( `${ builtEditorPath }.js`, `${ destinationPath }.js` ),
							tools.copyFile( `${ builtEditorPath }.css`, `${ destinationPath }.css` )
						] );
					} )
					// And clean up.
github ckeditor / ckeditor5-dev / packages / ckeditor5-dev-bundler-rollup / lib / tasks.js View on Github external
_generateCssBundle( { sourceBuildDir, fileName, filePath } ) {
		const cssSource = path.join( sourceBuildDir, 'theme', 'ckeditor.css' );
		const outputDirectory = path.dirname( filePath );

		return tools.copyFile( cssSource, path.join( outputDirectory, `${ fileName }.css` ) );
	},