当前位置: 首页>>代码示例>>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;未经允许,请勿转载。