| 
									
										
										
										
											2019-11-15 02:56:55 +02:00
										 |  |  | #!/usr/bin/env node
 | 
					
						
							| 
									
										
										
										
											2020-03-02 18:35:30 +01:00
										 |  |  | /** | 
					
						
							|  |  |  |  * @license | 
					
						
							| 
									
										
										
										
											2020-05-19 12:08:49 -07:00
										 |  |  |  * Copyright Google LLC All Rights Reserved. | 
					
						
							| 
									
										
										
										
											2020-03-02 18:35:30 +01:00
										 |  |  |  * | 
					
						
							|  |  |  |  * 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
 | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2020-02-29 22:25:49 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-11-15 02:56:55 +02:00
										 |  |  | 'use strict'; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-05 19:05:54 +03:00
										 |  |  | const {buildAngularInMemoryWebApiPackage} = require('./angular-in-memory-web-api'); | 
					
						
							| 
									
										
										
										
											2019-11-15 02:56:55 +02:00
										 |  |  | const {buildTargetPackages} = require('./package-builder'); | 
					
						
							| 
									
										
										
										
											2021-04-05 19:05:54 +03:00
										 |  |  | const {buildZoneJsPackage} = require('./zone-js-builder'); | 
					
						
							| 
									
										
										
										
											2019-11-15 02:56:55 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-02-29 22:25:49 +02:00
										 |  |  | // Build the ivy packages into `dist/packages-dist-ivy-aot/`.
 | 
					
						
							| 
									
										
										
										
											2019-11-22 12:11:48 -08:00
										 |  |  | buildTargetPackages('dist/packages-dist-ivy-aot', true, 'Ivy AOT'); | 
					
						
							| 
									
										
										
										
											2020-02-29 21:05:23 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-05 19:05:54 +03:00
										 |  |  | // Build the `angular-in-memory-web-api` npm package into
 | 
					
						
							|  |  |  | // `dist/angular-in-memory-web-api-dist-ivy-aot/`, because it might be needed by other
 | 
					
						
							|  |  |  | // scripts/targets.
 | 
					
						
							| 
									
										
										
										
											2021-04-05 19:05:54 +03:00
										 |  |  | //
 | 
					
						
							|  |  |  | // NOTE:
 | 
					
						
							|  |  |  | // The `-ivy-aot` suffix is only used to differentiate from the packages built by the
 | 
					
						
							|  |  |  | // `build-packages-dist.js` script, so that there is no conflict when persisting them to the
 | 
					
						
							|  |  |  | // workspace on CI.
 | 
					
						
							| 
									
										
										
										
											2021-04-05 19:05:54 +03:00
										 |  |  | buildAngularInMemoryWebApiPackage('dist/angular-in-memory-web-api-dist-ivy-aot'); | 
					
						
							| 
									
										
										
										
											2021-04-05 19:05:54 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-02-29 21:05:23 +02:00
										 |  |  | // Build the `zone.js` npm package into `dist/zone.js-dist-ivy-aot/`, because it might be needed by
 | 
					
						
							|  |  |  | // other scripts/tests.
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | // NOTE:
 | 
					
						
							|  |  |  | // The `-ivy-aot` suffix is only used to differentiate from the packages built by the
 | 
					
						
							|  |  |  | // `build-packages-dist.js` script, so that there is no conflict when persisting them to the
 | 
					
						
							|  |  |  | // workspace on CI.
 | 
					
						
							|  |  |  | buildZoneJsPackage('dist/zone.js-dist-ivy-aot'); |