mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
2320532516
* The pure annotations are no longer added to ES5 bundles of Angular Material or the CDK. The pure annotations should be added by the new build optimizer which is part of the CLI.
13 lines
475 B
TypeScript
13 lines
475 B
TypeScript
import {sync as glob} from 'glob';
|
|
import {mkdirpSync, copySync} from 'fs-extra';
|
|
import {join, dirname} from 'path';
|
|
|
|
/** Function to copy files that match a glob to another directory. */
|
|
export function copyFiles(fromPath: string, fileGlob: string, outDir: string) {
|
|
glob(fileGlob, {cwd: fromPath}).forEach(filePath => {
|
|
const fileDestPath = join(outDir, filePath);
|
|
mkdirpSync(dirname(fileDestPath));
|
|
copySync(join(fromPath, filePath), fileDestPath);
|
|
});
|
|
}
|