-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Package updates, Docker build file (#987)
* chore: bump angular version 12.0.0 -> 12.2.8 * build: remove frontend functions * chore: update @angular/cdk 10.2.5 -> 12.2.8 * chore: update @angular/fire 6.1.1 -> 7.0.4 * chore: update fontawesome * chore: update @nguniversal/express-engine 10.1.0 -> 12.1.1 * chore: update @angular-builders/custom-webpack 12.1.0 -> 12.1.3 * chore: update types * chore: update eslint * chore: fix eslint versions * chore: fix eslint versions * chore: update ng-in-viewport 6.1.0 -> 6.1.5 * chore: update css related packages * fix: use firebase compat layer * chore: update core-js 2.6.11 -> 3.18.1 * chore: remove unused lodash-es * chore: update subsink 1.0.1 -> 1.0.2 * chore: update testing libs * chore: remove jsdom * chore: update tslib 2.0.1 -> 2.3.1 * chore: update @angularclass/hmr 2.1.3 -> 3.0.0 * chore: update node packages * chore: update ngx-loading-bar * chore: bump version * style: format * fix: ignore firebase type * fix: CI * fix: remove core-js import from tests * build: add ssr docker building
- Loading branch information
Showing
4 changed files
with
17 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
npm-debug.log | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM node:14-alpine | ||
|
||
WORKDIR /usr/src/app | ||
COPY . . | ||
RUN yarn install --frozen-lockfile | ||
RUN yarn ng run frontend:build:production | ||
RUN yarn ng run frontend:server:production | ||
|
||
EXPOSE 4000 | ||
CMD [ "node", "dist/frontend/server/main.js" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
import { Injectable } from '@angular/core' | ||
import { Observable } from 'rxjs' | ||
import { Observable, of } from 'rxjs' | ||
import { AlertMessage } from '../models/alert-message' | ||
import { AngularFirestore } from '@angular/fire/compat/firestore' | ||
|
||
@Injectable({ | ||
providedIn: 'root', | ||
}) | ||
export class AlertService { | ||
constructor(private firestore: AngularFirestore) {} | ||
constructor() {} | ||
|
||
getAlertMessages(): Observable<AlertMessage[]> { | ||
return this.firestore.collection<AlertMessage>('messages').valueChanges() | ||
return of([]) | ||
} | ||
} |