Skip to content

Commit 33a900c

Browse files
committed
Upgrade to Angular 6
1 parent 9a7954a commit 33a900c

21 files changed

+203
-117
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017 jeroenouw
3+
Copyright (c) 2017 - 2018 jeroenouw
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
![logo](https://jerouw.nl/wp-content/uploads/2017/05/ngfbmd.png "Logo")
1010

11-
# Angular 5 | Material Design | Firebase - Starter kit
12-
A full stack starter app containing [Angular 5](https://angular.io), [Material](https://material.io/) and [Firebase](https://firebase.google.com/).
11+
# Angular 6 | Material Design | Firebase - Starter kit
12+
A full stack starter app containing [Angular 6](https://angular.io), [Material](https://material.io/) and [Firebase](https://firebase.google.com/).
1313

1414
## [Live demo](http://ngxmatfire.jerouw.nl)
1515
![loginpage](https://jerouw.nl/wp-content/uploads/2017/05/ngfbmdprintscreen.png "Logo")
@@ -27,4 +27,4 @@ A full stack starter app containing [Angular 5](https://angular.io), [Material](
2727
Want to file a bug, contribute some code, or improve documentation? Feel free to place an [issue](https://github.com/jeroenouw/AngularMaterialFirebase/issues).
2828

2929
## License
30-
[![npmlicense](https://img.shields.io/npm/l/ng4matfire.svg)](https://github.com/jeroenouw/AngularMaterialFirebase/blob/master/LICENSE/)
30+
[![npmlicense](https://img.shields.io/npm/l/ngxmatfire.svg)](https://github.com/jeroenouw/AngularMaterialFirebase/blob/master/LICENSE/)

angular-cli.json

Lines changed: 0 additions & 57 deletions
This file was deleted.

angular.json

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "",
5+
"projects": {
6+
"ngxmatfire": {
7+
"root": "",
8+
"sourceRoot": ".",
9+
"projectType": "application",
10+
"architect": {
11+
"build": {
12+
"builder": "@angular-devkit/build-angular:browser",
13+
"options": {
14+
"outputPath": "dist",
15+
"index": "src/index.html",
16+
"main": "src/main.ts",
17+
"tsConfig": "src/tsconfig.app.json",
18+
"polyfills": "src/polyfills.ts",
19+
"assets": [
20+
"src/assets",
21+
"src/favicon.ico"
22+
],
23+
"styles": [
24+
"src/styles.scss"
25+
],
26+
"scripts": []
27+
},
28+
"configurations": {
29+
"production": {
30+
"optimization": true,
31+
"outputHashing": "all",
32+
"sourceMap": false,
33+
"extractCss": true,
34+
"namedChunks": false,
35+
"aot": true,
36+
"extractLicenses": true,
37+
"vendorChunk": false,
38+
"buildOptimizer": true,
39+
"fileReplacements": [
40+
{
41+
"replace": "src/environments/environment.ts",
42+
"with": "src/environments/environment.prod.ts"
43+
}
44+
]
45+
}
46+
}
47+
},
48+
"serve": {
49+
"builder": "@angular-devkit/build-angular:dev-server",
50+
"options": {
51+
"browserTarget": "ngxmatfire:build"
52+
},
53+
"configurations": {
54+
"production": {
55+
"browserTarget": "ngxmatfire:build:production"
56+
}
57+
}
58+
},
59+
"extract-i18n": {
60+
"builder": "@angular-devkit/build-angular:extract-i18n",
61+
"options": {
62+
"browserTarget": "ngxmatfire:build"
63+
}
64+
},
65+
"test": {
66+
"builder": "@angular-devkit/build-angular:karma",
67+
"options": {
68+
"main": "src/test.ts",
69+
"karmaConfig": "./karma.conf.js",
70+
"polyfills": "src/polyfills.ts",
71+
"tsConfig": "src/tsconfig.spec.json",
72+
"scripts": [],
73+
"styles": [
74+
"src/styles.scss"
75+
],
76+
"assets": [
77+
"src/assets",
78+
"src/favicon.ico"
79+
]
80+
}
81+
},
82+
"lint": {
83+
"builder": "@angular-devkit/build-angular:tslint",
84+
"options": {
85+
"tsConfig": [
86+
"src/tsconfig.app.json",
87+
"src/tsconfig.spec.json"
88+
],
89+
"exclude": []
90+
}
91+
}
92+
}
93+
},
94+
"ngxmatfire-e2e": {
95+
"root": "",
96+
"sourceRoot": ".",
97+
"projectType": "application",
98+
"architect": {
99+
"e2e": {
100+
"builder": "@angular-devkit/build-angular:protractor",
101+
"options": {
102+
"protractorConfig": "./protractor.conf.js",
103+
"devServerTarget": "ngxmatfire:serve"
104+
}
105+
},
106+
"lint": {
107+
"builder": "@angular-devkit/build-angular:tslint",
108+
"options": {
109+
"tsConfig": [
110+
"e2e/tsconfig.e2e.json"
111+
],
112+
"exclude": []
113+
}
114+
}
115+
}
116+
}
117+
},
118+
"defaultProject": "ngxmatfire",
119+
"schematics": {
120+
"@schematics/angular:component": {
121+
"prefix": "app",
122+
"styleext": "scss"
123+
},
124+
"@schematics/angular:directive": {
125+
"prefix": "app"
126+
}
127+
}
128+
}

docs/FEATURES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## Features in this project:
2-
* Angular 5 front-end with Material Design
2+
* Angular 6 front-end with Material Design
33
* Firebase back-end (0Auth authentication and NoSQL database)
44
* Home page
55
* About page

karma.conf.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
module.exports = function (config) {
55
config.set({
66
basePath: '',
7-
frameworks: ['jasmine', '@angular/cli'],
7+
frameworks: ['jasmine', '@angular-devkit/build-angular'],
88
plugins: [
99
require('karma-jasmine'),
1010
require('karma-chrome-launcher'),
1111
require('karma-jasmine-html-reporter'),
1212
require('karma-coverage-istanbul-reporter'),
13-
require('@angular/cli/plugins/karma')
13+
require('@angular-devkit/build-angular/plugins/karma')
1414
],
1515
client:{
1616
clearContext: false // leave Jasmine Spec Runner output visible in browser
1717
},
1818
coverageIstanbulReporter: {
19-
reports: [ 'html', 'lcovonly' ],
19+
dir: require('path').join(__dirname, 'coverage'), reports: [ 'html', 'lcovonly' ],
2020
fixWebpackSourcePaths: true
2121
},
2222
angularCli: {

package.json

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"name": "ngxmatfire",
33
"version": "1.0.12",
44
"author": "Jeroen Ouwehand",
5-
"description": "Full stack starter app with Angular 5, Material Design and Firebase.",
5+
"description": "Full stack starter app with Angular 6, Material Design and Firebase.",
66
"keywords": [
77
"angular",
8-
"angular 5",
8+
"angular 6",
99
"firebase",
1010
"material",
1111
"nosql",
@@ -30,44 +30,47 @@
3030
"i18n": "ng-xi18n"
3131
},
3232
"dependencies": {
33-
"@angular/animations": "^5.2.9",
34-
"@angular/cdk": "^5.2.4",
35-
"@angular/common": "^5.2.9",
36-
"@angular/compiler": "^5.2.9",
37-
"@angular/core": "^5.2.9",
38-
"@angular/forms": "^5.2.9",
39-
"@angular/http": "^5.2.9",
40-
"@angular/material": "^5.2.4",
41-
"@angular/platform-browser": "^5.2.9",
42-
"@angular/platform-browser-dynamic": "^5.2.9",
43-
"@angular/platform-server": "^5.2.9",
44-
"@angular/router": "^5.2.9",
33+
"@angular/animations": "^6.0.0",
34+
"@angular/cdk": "^6.0.1",
35+
"@angular/common": "^6.0.0",
36+
"@angular/compiler": "^6.0.0",
37+
"@angular/core": "^6.0.0",
38+
"@angular/forms": "^6.0.0",
39+
"@angular/http": "^6.0.0",
40+
"@angular/material": "^6.0.1",
41+
"@angular/platform-browser": "^6.0.0",
42+
"@angular/platform-browser-dynamic": "^6.0.0",
43+
"@angular/platform-server": "^6.0.0",
44+
"@angular/router": "^6.0.0",
4545
"core-js": "^2.5.3",
4646
"firebase": "^4.11.0",
4747
"hammerjs": "^2.0.8",
48-
"rxjs": "^5.5.7",
48+
"rxjs": "^6.1.0",
49+
"rxjs-compat": "^6.1.0",
4950
"ts-helpers": "*",
50-
"zone.js": "^0.8.20"
51+
"zone.js": "^0.8.26"
5152
},
5253
"devDependencies": {
53-
"@angular/cli": "^1.7.3",
54-
"@angular/compiler-cli": "^5.2.9",
55-
"@angular/language-service": "^5.2.9",
56-
"@types/jasmine": "^2.8.6",
57-
"@types/node": "^9.4.7",
54+
"@angular-devkit/build-angular": "~0.6.0",
55+
"@angular/cli": "^6.0.0",
56+
"@angular/compiler-cli": "^6.0.0",
57+
"@angular/language-service": "^6.0.0",
58+
"@types/jasmine": "^2.8.7",
59+
"@types/node": "^10.0.3",
5860
"codelyzer": "^4.2.1",
59-
"jasmine-core": "^2.99.1",
61+
"jasmine-core": "^3.1.0",
6062
"jasmine-spec-reporter": "^4.2.1",
61-
"karma": "^2.0.0",
63+
"karma": "^2.0.2",
6264
"karma-chrome-launcher": "^2.2.0",
6365
"karma-cli": "^1.0.1",
6466
"karma-coverage-istanbul-reporter": "^1.4.2",
65-
"karma-jasmine": "^1.1.1",
66-
"karma-jasmine-html-reporter": "^0.2.2",
67-
"protractor": "^5.3.0",
68-
"ts-node": "^4.1.0",
69-
"tslint": "^5.9.1",
70-
"typescript": "^2.7.2",
71-
"webpack": "^3.11.0"
67+
"karma-jasmine": "^1.1.2",
68+
"karma-jasmine-html-reporter": "^1.0.0",
69+
"protractor": "^5.3.1",
70+
"rxjs-tslint": "^0.1.3",
71+
"ts-node": "^6.0.2",
72+
"tslint": "^5.10.0",
73+
"typescript": "2.7.2",
74+
"webpack": "^4.6.0"
7275
}
7376
}

src/app/app.module.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Modules 3rd party
2-
import { NgModule } from '@angular/core';
2+
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
33
import { BrowserModule } from '@angular/platform-browser';
4-
import { BrowserAnimationsModule } from '@angular/platform-browser/aniMations';
4+
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
55
import { MatButtonModule, MatCheckboxModule, MatMenuModule, MatInputModule, MatSnackBarModule,
66
MatToolbarModule, MatDialogModule, MatSidenavModule, MatNativeDateModule,
77
MatCardModule, MatTabsModule, MatIconModule } from '@angular/Material';
@@ -78,6 +78,9 @@ import { EmailMeComponent } from './components/email-me/email-me.component';
7878
AuthService,
7979
WindowService
8080
],
81+
schemas: [
82+
CUSTOM_ELEMENTS_SCHEMA
83+
],
8184
bootstrap: [AppComponent]
8285
})
8386
export class AppModule {

src/app/components/auth/auth.module.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Modules 3rd party
2-
import { NgModule } from '@angular/core';
2+
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
33
import { CommonModule } from '@angular/common';
44
import { BrowserModule } from '@angular/platform-browser';
55
import { FormsModule } from '@angular/forms';
@@ -29,7 +29,9 @@ import { PhoneSigninComponent } from './phone-signin/phone-signin.component';
2929
UsersRouting
3030
],
3131
providers: [
32-
32+
],
33+
schemas: [
34+
CUSTOM_ELEMENTS_SCHEMA
3335
],
3436
exports: [
3537
SignupComponent,

src/app/components/blocks/first-block/first-block.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ import { Component } from '@angular/core';
77
})
88
export class FirstBlockComponent {
99
titleOne = 'Starter kit';
10-
contentOne = 'Angular 5 | Material Design | Firebase (0Auth authentication and NoSQL database)';
10+
contentOne = 'Angular 6 | Material Design | Firebase (0Auth authentication and NoSQL database)';
1111

1212
}

0 commit comments

Comments
 (0)