本文整理汇总了TypeScript中m2e-build-tools.m2ePackages.forEach方法的典型用法代码示例。如果您正苦于以下问题:TypeScript m2ePackages.forEach方法的具体用法?TypeScript m2ePackages.forEach怎么用?TypeScript m2ePackages.forEach使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类m2e-build-tools.m2ePackages
的用法示例。
在下文中一共展示了m2ePackages.forEach方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: task
task('aot:copy-release', () => {
m2ePackages.forEach((p) => {
copySync(join(releasesDir, `${p}`), join(demoAppOut, `${p}`));
});
});
示例2: join
// Path to the release output of m2e.
const releasePaths = m2ePackages.map((p) => join(releasesDir, `${p}`));
// Matches all SCSS files in the library.
const allScssGlobs = m2ePaths.map((p) => join(p, '**/*.scss'));
[calendarPackage, masonryPackage].forEach((p) => {
task(`m2e-${p.name}:build-release`, () => composeRelease(p));
});
/**
* Overwrite the release task for the m2e package.
*/
task('m2e:build-release', ['m2e:prepare-release'], sequenceTask(
...m2ePackages.map((p) => `${p}:build-release`)
));
/**
* Task that will build the material package. It will also copy all prebuilt themes and build
* a bundled SCSS file for theming
*/
task('m2e:prepare-release', sequenceTask(
...m2ePackages.map((p) => `${p}:build`)
));
m2ePackages.forEach((m) => {
task(`update-package-version:${m}`,
execTask(join(packagesDir, '..', 'publish.sh'), ['-v', `-p ${m}`]));
});
task('update-package-version',
execTask(join(packagesDir, '..', 'publish.sh'), ['-v']));