"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tools/release/release-output/output-validations.ts" between
material2-7.3.6.tar.gz and material2-7.3.7.tar.gz

About: material2 offers Material Design components for Angular.

output-validations.ts  (material2-7.3.6):output-validations.ts  (material2-7.3.7)
import {existsSync, readFileSync} from 'fs'; import {existsSync, readFileSync} from 'fs';
import {sync as glob} from 'glob'; import {sync as glob} from 'glob';
import {dirname, isAbsolute, join} from 'path'; import {dirname, isAbsolute, join, basename} from 'path';
import * as ts from 'typescript'; import * as ts from 'typescript';
/** RegExp that matches Angular component inline styles that contain a sourcemap reference. */ /** RegExp that matches Angular component inline styles that contain a sourcemap reference. */
const inlineStylesSourcemapRegex = /styles: ?\[["'].*sourceMappingURL=.*["']/; const inlineStylesSourcemapRegex = /styles: ?\[["'].*sourceMappingURL=.*["']/;
/** RegExp that matches Angular component metadata properties that refer to exte rnal resources. */ /** RegExp that matches Angular component metadata properties that refer to exte rnal resources. */
const externalReferencesRegex = /(templateUrl|styleUrls): *["'[]/; const externalReferencesRegex = /(templateUrl|styleUrls): *["'[]/;
/** /**
* Checks the specified release bundle and ensures that it does not contain * Checks the specified release bundle and ensures that it does not contain
skipping to change at line 90 skipping to change at line 90
if (glob('*.css', {cwd: prebuiltThemesPath}).length === 0) { if (glob('*.css', {cwd: prebuiltThemesPath}).length === 0) {
failures.push('No prebuilt themes could be found.'); failures.push('No prebuilt themes could be found.');
} }
if (!existsSync(themingFilePath)) { if (!existsSync(themingFilePath)) {
failures.push('The theming bundle could not be found.'); failures.push('The theming bundle could not be found.');
} }
return failures; return failures;
} }
/**
* Checks whether the prebuilt CDK files are part of the release output.
*/
export function checkCdkPackage(packagePath: string): string[] {
const prebuiltFiles = glob('*-prebuilt.css', {cwd: packagePath}).map(path => b
asename(path));
return ['overlay', 'a11y', 'text-field']
.filter(name => !prebuiltFiles.includes(`${name}-prebuilt.css`))
.map(name => `Could not find the prebuilt ${name} styles.`);
}
 End of changes. 2 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)