當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript m2ePackages.forEach方法代碼示例

本文整理匯總了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}`));
  });
});
開發者ID:gnucoop,項目名稱:material2-extra,代碼行數:5,代碼來源:aot.ts

示例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']));
開發者ID:gnucoop,項目名稱:material2-extra,代碼行數:30,代碼來源:material2-extra-release.ts


注:本文中的m2e-build-tools.m2ePackages.forEach方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。