Update to Angular 5 and perform a *real* production build.

This commit is contained in:
Manuel Friedli 2017-11-07 23:29:36 +01:00
parent aca588f6b5
commit 0f857d4770
5 changed files with 1098 additions and 403 deletions

View File

@ -22,8 +22,8 @@
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve", "start": "ng serve",
"build": "ng build", "build": "ng build --delete-output-path",
"build-prod": "ng build --env=prod", "build-prod": "ng build -prod -e prod --aot --delete-output-path --build-optimizer",
"test": "ng test --single-run", "test": "ng test --single-run",
"test-continuous": "ng test", "test-continuous": "ng test",
"lint": "ng lint", "lint": "ng lint",
@ -32,27 +32,26 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/common": "^4.0.0", "@angular/common": "^5.0.0",
"@angular/compiler": "^4.0.0", "@angular/compiler": "^5.0.0",
"@angular/core": "^4.0.0", "@angular/core": "^5.0.0",
"@angular/forms": "^4.0.0", "@angular/forms": "^5.0.0",
"@angular/http": "^4.0.0", "@angular/platform-browser": "^5.0.0",
"@angular/platform-browser": "^4.0.0", "@angular/platform-browser-dynamic": "^5.0.0",
"@angular/platform-browser-dynamic": "^4.0.0", "@angular/router": "^5.0.0",
"@angular/router": "^4.0.0", "core-js": "^2.5.1",
"core-js": "^2.4.1",
"punycode": "^2.1.0", "punycode": "^2.1.0",
"quoted-printable": "^1.0.0", "quoted-printable": "^1.0.0",
"rxjs": "^5.1.0", "rxjs": "^5.5.2",
"utf8": "^2.1.0", "utf8": "^2.1.0",
"zone.js": "^0.8.4" "zone.js": "^0.8.18"
}, },
"devDependencies": { "devDependencies": {
"@angular/cli": "^1.0.0", "@angular/cli": "^1.5.0",
"@angular/compiler-cli": "^4.0.0", "@angular/compiler-cli": "^5.0.0",
"@types/jasmine": "^2.5.38", "@types/jasmine": "^2.5.38",
"@types/node": "^8.0.16", "@types/node": "^8.0.50",
"codelyzer": "^3.1.2", "codelyzer": "^4.0.1",
"jasmine-core": "^2.5.2", "jasmine-core": "^2.5.2",
"jasmine-spec-reporter": "^4.0.0", "jasmine-spec-reporter": "^4.0.0",
"karma": "^1.4.1", "karma": "^1.4.1",

View File

@ -1,15 +1,13 @@
import {Component, OnInit} from '@angular/core'; import {Component, OnInit} from '@angular/core';
import {ConverterRegistryService} from './converterregistry.service'; import {ConverterRegistryService} from './converterregistry.service';
import {InputComponentManagerService} from './inputcomponentmanager.service'; import {InputComponentManagerService} from './inputcomponentmanager.service';
import {NativeLibraryWrapperService} from './nativelibrarywrapper.service';
import {Step} from './step'; import {Step} from './step';
import {Converter} from './converter/converter'; import {Converter} from './converter/converter';
@Component({ @Component({
selector: 'app-root', selector: 'app-root',
templateUrl: './app.component.html', templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'], styleUrls: ['./app.component.scss']
providers: [ConverterRegistryService, InputComponentManagerService, NativeLibraryWrapperService]
}) })
export class AppComponent implements OnInit { export class AppComponent implements OnInit {
public steps: Step[] = []; public steps: Step[] = [];

View File

@ -1,10 +1,10 @@
import {BrowserModule} from '@angular/platform-browser'; import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core'; 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 {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({ @NgModule({
declarations: [ declarations: [
@ -12,11 +12,9 @@ import {AppComponent} from './app.component';
], ],
imports: [ imports: [
BrowserModule, BrowserModule,
FormsModule, FormsModule
HttpModule,
AppRoutingModule
], ],
providers: [], providers: [ConverterRegistryService, InputComponentManagerService, NativeLibraryWrapperService],
bootstrap: [AppComponent] bootstrap: [AppComponent]
}) })
export class AppModule { export class AppModule {

View File

@ -17,19 +17,19 @@
* BROWSER POLYFILLS * BROWSER POLYFILLS
*/ */
/** IE9, IE10 and IE11 requires all of the following polyfills. **/ /** IE9, IE10 and IE11 requires all of the following polyfills. **/
import 'core-js/es6/symbol'; // import 'core-js/es6/symbol';
import 'core-js/es6/object'; // import 'core-js/es6/object';
import 'core-js/es6/function'; // import 'core-js/es6/function';
import 'core-js/es6/parse-int'; // import 'core-js/es6/parse-int';
import 'core-js/es6/parse-float'; // import 'core-js/es6/parse-float';
import 'core-js/es6/number'; // import 'core-js/es6/number';
import 'core-js/es6/math'; // import 'core-js/es6/math';
import 'core-js/es6/string'; // import 'core-js/es6/string';
import 'core-js/es6/date'; // import 'core-js/es6/date';
import 'core-js/es6/array'; // import 'core-js/es6/array';
import 'core-js/es6/regexp'; // import 'core-js/es6/regexp';
import 'core-js/es6/map'; // import 'core-js/es6/map';
import 'core-js/es6/set'; // import 'core-js/es6/set';
/** IE10 and IE11 requires the following for NgClass support on SVG elements */ /** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`. // import 'classlist.js'; // Run `npm install --save classlist.js`.
/** IE10 and IE11 requires the following to support `@angular/animation`. */ /** IE10 and IE11 requires the following to support `@angular/animation`. */

1424
yarn.lock

File diff suppressed because it is too large Load Diff