How to use the @ckeditor/ckeditor5-dev-utils.stream.noop 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
bundleDir = path.join( rootDir, bundleDir );

		const ckeditor5DevBundler = require( '@ckeditor/ckeditor5-dev-bundler-rollup' )( {
			ROOT_DIR: rootDir,
			MODULE_DIR: {
				esnext: ''
			},
			BUNDLE_DIR: bundleDir
		} );

		return docsUtils.getSamplesStream( rootDir, samplesGlob )
			.pipe( gulpFilter( ( file ) => path.extname( file.path ) === '.js' ) )
			.pipe( gulpRename( ( file ) => {
				file.dirname = file.dirname.replace( '/docs/samples', '' );
			} ) )
			.pipe( stream.noop( ( file ) => {
				const bundleConfig = docsUtils.getBundlerConfigFromSample( file.contents.toString( 'utf-8' ) );
				bundleConfig.format = 'iife';
				bundleConfig.path = file.path.match( /\/samples\/(.*)\.js$/ )[ 1 ];

				const splitPath = bundleConfig.path.split( path.sep );
				const packageName = splitPath[ 0 ];

				// Clean the output paths.
				return ckeditor5DevBundler.clean( bundleConfig )
				// Then bundle a editor.
					.then( () => ckeditor5DevBundler.generate( bundleConfig ) )
					// Then copy created files.
					.then( () => {
						const beginPath = splitPath.slice( 1, -1 ).join( path.sep ) || '.';
						const fileName = splitPath.slice( -1 ).join();
						const builtEditorPath = path.join( bundleDir, bundleConfig.path, bundleConfig.moduleName );
github ckeditor / ckeditor5-dev / packages / ckeditor5-dev-env / lib / release-tools / utils / generatechangelogfromcommits.js View on Github external
function changelogPipe( options ) {
	return stream.noop( function( changes ) {
		if ( options.stream.destroyed ) {
			return;
		}

		const newEntries = groupUpdatedTranslationsCommits( changes.toString() );

		if ( options.doNotSave ) {
			return options.done( newEntries );
		}

		let currentChangelog = changelogUtils.getChangelog();

		// Remove header from current changelog.
		currentChangelog = currentChangelog.replace( changelogUtils.changelogHeader, '' );

		// Concat header, new and current changelog.