本文整理匯總了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']));