https://github.com/angular/angular
Revision 521bfc127c46d3a04aee66385fb8315bd23069e5 authored by George Kalpakas on 26 April 2022, 13:58:00 UTC, committed by Dylan Hunn on 29 April 2022, 16:20:08 UTC
Update some TypeScript types in `generate-locales-tool/day-periods.ts`
to more closely reflect the actual shapes of the returned objects.

Examples of the related raw JSON data for the `en` locale can be seen
here:
- [dayPeriods][1]
- [dayPeriodRules][2]

[1]: https://github.com/unicode-org/cldr-json/blob/41.0.0/cldr-json/cldr-dates-full/main/en/ca-gregorian.json#L223-L300
[2]: https://github.com/unicode-org/cldr-json/blob/41.0.0/cldr-json/cldr-core/supplemental/dayPeriods.json#L404-L427

PR Close #45714
1 parent 0e5e4e2
Raw File
Tip revision: 521bfc127c46d3a04aee66385fb8315bd23069e5 authored by George Kalpakas on 26 April 2022, 13:58:00 UTC
refactor(common): improve `dayPeriods`-related types in `generate-locales-tool` (#45714)
Tip revision: 521bfc1
gulpfile.js
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */

'use strict';

const gulp = require('gulp');

// See `tools/gulp-tasks/README.md` for information about task loading.
function loadTask(fileName, taskName) {
  const taskModule = require('./tools/gulp-tasks/' + fileName);
  const task = taskName ? taskModule[taskName] : taskModule;
  return task(gulp);
}


gulp.task('source-map-test', loadTask('source-map-test'));
gulp.task('changelog:zonejs', loadTask('changelog-zonejs'));
back to top