How to use the ng-packagr/lib/util/log.success function in ng-packagr

To help you get started, we’ve selected a few ng-packagr 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 shlomiassaf / ngrid / tools / ng-packagr.transformers / sass-build-task.ts View on Github external
if (imports) {
		const filesNotFound = imports
			.filter(x => !x.found && !x.ignored)
			.map(x => x.filePath);

		if (filesNotFound.length) {
      log.error(`= Error: SCSS imports failed`);
      log.error('= ' + filesNotFound.join('\n= '));
      log.info('=========================================================================================================');
			throw new Error('One or more SCSS imports failed');
		}
	}

	if (found) {
    await writeFile(dest, bundledContent);
    log.success(`= Bundle OK`);
    log.info('=========================================================================================================');
	}
}

ng-packagr

Compile and package Angular libraries in Angular Package Format (APF)

MIT
Latest version published 2 months ago

Package Health Score

89 / 100
Full package analysis