Update to Angular 5 and perform a *real* production build.
This commit is contained in:
		
							parent
							
								
									aca588f6b5
								
							
						
					
					
						commit
						0f857d4770
					
				
					 5 changed files with 1098 additions and 403 deletions
				
			
		
							
								
								
									
										33
									
								
								package.json
									
										
									
									
									
								
							
							
						
						
									
										33
									
								
								package.json
									
										
									
									
									
								
							|  | @ -22,8 +22,8 @@ | |||
|   "scripts": { | ||||
|     "ng": "ng", | ||||
|     "start": "ng serve", | ||||
|     "build": "ng build", | ||||
|     "build-prod": "ng build --env=prod", | ||||
|     "build": "ng build --delete-output-path", | ||||
|     "build-prod": "ng build -prod -e prod --aot --delete-output-path --build-optimizer", | ||||
|     "test": "ng test --single-run", | ||||
|     "test-continuous": "ng test", | ||||
|     "lint": "ng lint", | ||||
|  | @ -32,27 +32,26 @@ | |||
|   }, | ||||
|   "private": true, | ||||
|   "dependencies": { | ||||
|     "@angular/common": "^4.0.0", | ||||
|     "@angular/compiler": "^4.0.0", | ||||
|     "@angular/core": "^4.0.0", | ||||
|     "@angular/forms": "^4.0.0", | ||||
|     "@angular/http": "^4.0.0", | ||||
|     "@angular/platform-browser": "^4.0.0", | ||||
|     "@angular/platform-browser-dynamic": "^4.0.0", | ||||
|     "@angular/router": "^4.0.0", | ||||
|     "core-js": "^2.4.1", | ||||
|     "@angular/common": "^5.0.0", | ||||
|     "@angular/compiler": "^5.0.0", | ||||
|     "@angular/core": "^5.0.0", | ||||
|     "@angular/forms": "^5.0.0", | ||||
|     "@angular/platform-browser": "^5.0.0", | ||||
|     "@angular/platform-browser-dynamic": "^5.0.0", | ||||
|     "@angular/router": "^5.0.0", | ||||
|     "core-js": "^2.5.1", | ||||
|     "punycode": "^2.1.0", | ||||
|     "quoted-printable": "^1.0.0", | ||||
|     "rxjs": "^5.1.0", | ||||
|     "rxjs": "^5.5.2", | ||||
|     "utf8": "^2.1.0", | ||||
|     "zone.js": "^0.8.4" | ||||
|     "zone.js": "^0.8.18" | ||||
|   }, | ||||
|   "devDependencies": { | ||||
|     "@angular/cli": "^1.0.0", | ||||
|     "@angular/compiler-cli": "^4.0.0", | ||||
|     "@angular/cli": "^1.5.0", | ||||
|     "@angular/compiler-cli": "^5.0.0", | ||||
|     "@types/jasmine": "^2.5.38", | ||||
|     "@types/node": "^8.0.16", | ||||
|     "codelyzer": "^3.1.2", | ||||
|     "@types/node": "^8.0.50", | ||||
|     "codelyzer": "^4.0.1", | ||||
|     "jasmine-core": "^2.5.2", | ||||
|     "jasmine-spec-reporter": "^4.0.0", | ||||
|     "karma": "^1.4.1", | ||||
|  |  | |||
|  | @ -1,15 +1,13 @@ | |||
| import {Component, OnInit} from '@angular/core'; | ||||
| import {ConverterRegistryService} from './converterregistry.service'; | ||||
| import {InputComponentManagerService} from './inputcomponentmanager.service'; | ||||
| import {NativeLibraryWrapperService} from './nativelibrarywrapper.service'; | ||||
| import {Step} from './step'; | ||||
| import {Converter} from './converter/converter'; | ||||
| 
 | ||||
| @Component({ | ||||
|   selector: 'app-root', | ||||
|   templateUrl: './app.component.html', | ||||
|   styleUrls: ['./app.component.scss'], | ||||
|   providers: [ConverterRegistryService, InputComponentManagerService, NativeLibraryWrapperService] | ||||
|   styleUrls: ['./app.component.scss'] | ||||
| }) | ||||
| export class AppComponent implements OnInit { | ||||
|   public steps: Step[] = []; | ||||
|  |  | |||
|  | @ -1,10 +1,10 @@ | |||
| import {BrowserModule} from '@angular/platform-browser'; | ||||
| import {NgModule} from '@angular/core'; | ||||
| import {FormsModule} from '@angular/forms'; | ||||
| import {HttpModule} from '@angular/http'; | ||||
| 
 | ||||
| import {AppRoutingModule} from './app-routing.module'; | ||||
| import {AppComponent} from './app.component'; | ||||
| import {ConverterRegistryService} from './converterregistry.service'; | ||||
| import {InputComponentManagerService} from './inputcomponentmanager.service'; | ||||
| import {NativeLibraryWrapperService} from './nativelibrarywrapper.service'; | ||||
| import {FormsModule} from '@angular/forms'; | ||||
| 
 | ||||
| @NgModule({ | ||||
|   declarations: [ | ||||
|  | @ -12,11 +12,9 @@ import {AppComponent} from './app.component'; | |||
|   ], | ||||
|   imports: [ | ||||
|     BrowserModule, | ||||
|     FormsModule, | ||||
|     HttpModule, | ||||
|     AppRoutingModule | ||||
|     FormsModule | ||||
|   ], | ||||
|   providers: [], | ||||
|   providers: [ConverterRegistryService, InputComponentManagerService, NativeLibraryWrapperService], | ||||
|   bootstrap: [AppComponent] | ||||
| }) | ||||
| export class AppModule { | ||||
|  |  | |||
|  | @ -17,19 +17,19 @@ | |||
|  * BROWSER POLYFILLS | ||||
|  */ | ||||
| /** IE9, IE10 and IE11 requires all of the following polyfills. **/ | ||||
| import 'core-js/es6/symbol'; | ||||
| import 'core-js/es6/object'; | ||||
| import 'core-js/es6/function'; | ||||
| import 'core-js/es6/parse-int'; | ||||
| import 'core-js/es6/parse-float'; | ||||
| import 'core-js/es6/number'; | ||||
| import 'core-js/es6/math'; | ||||
| import 'core-js/es6/string'; | ||||
| import 'core-js/es6/date'; | ||||
| import 'core-js/es6/array'; | ||||
| import 'core-js/es6/regexp'; | ||||
| import 'core-js/es6/map'; | ||||
| import 'core-js/es6/set'; | ||||
| // import 'core-js/es6/symbol';
 | ||||
| // import 'core-js/es6/object';
 | ||||
| // import 'core-js/es6/function';
 | ||||
| // import 'core-js/es6/parse-int';
 | ||||
| // import 'core-js/es6/parse-float';
 | ||||
| // import 'core-js/es6/number';
 | ||||
| // import 'core-js/es6/math';
 | ||||
| // import 'core-js/es6/string';
 | ||||
| // import 'core-js/es6/date';
 | ||||
| // import 'core-js/es6/array';
 | ||||
| // import 'core-js/es6/regexp';
 | ||||
| // import 'core-js/es6/map';
 | ||||
| // import 'core-js/es6/set';
 | ||||
| /** IE10 and IE11 requires the following for NgClass support on SVG elements */ | ||||
| // import 'classlist.js';  // Run `npm install --save classlist.js`.
 | ||||
| /** IE10 and IE11 requires the following to support `@angular/animation`. */ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue