Revert back to downloading cldr-data directly as the npm package seems to no longer be maintained and additionally, it carries a ~350mb cost in our node modules that is unnecessarily downloaded by most developers and on CI. PR Close #39341
		
			
				
	
	
		
			37 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /**
 | |
|  * @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';
 | |
| 
 | |
| // THIS CHECK SHOULD BE THE FIRST THING IN THIS FILE
 | |
| // This is to ensure that we catch env issues before we error while requiring other dependencies.
 | |
| const engines = require('./package.json').engines;
 | |
| require('./tools/check-environment')({
 | |
|   requiredNodeVersion: engines.node,
 | |
|   requiredNpmVersion: engines.npm,
 | |
|   requiredYarnVersion: engines.yarn
 | |
| });
 | |
| 
 | |
| 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', loadTask('changelog'));
 | |
| gulp.task('changelog:zonejs', loadTask('changelog-zonejs'));
 | |
| gulp.task('check-env', () => {/* this is a noop because the env test ran already above */});
 | |
| gulp.task('cldr:extract', loadTask('cldr', 'extract'));
 | |
| gulp.task('cldr:download', loadTask('cldr', 'download'));
 | |
| gulp.task('cldr:gen-closure-locale', loadTask('cldr', 'closure'));
 |