|
14 | 14 |
|
15 | 15 | <p align="center"> |
16 | 16 | <a href="/CONTRIBUTING.md"><img alt="PRs Welcome" src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg"></a> |
17 | | - <a href="https://travis-ci.org/housseindjirdeh/angular2-hn"><img alt="Build Status" src="https://travis-ci.org/housseindjirdeh/angular2-hn.svg?branch=master"></a> |
| 17 | + <a href="https://github.com/COG-GTM/angular2-hn/actions/workflows/ci.yml"><img alt="Build Status" src="https://github.com/COG-GTM/angular2-hn/actions/workflows/ci.yml/badge.svg"></a> |
18 | 18 | </p> |
19 | 19 |
|
20 | 20 | --- |
@@ -71,18 +71,31 @@ More to come! |
71 | 71 |
|
72 | 72 | Feel free to send me feedback on [twitter](https://twitter.com/hdjirdeh) or [file an issue](https://github.com/hdjirdeh/angular2-hn/issues/new)! Feature requests are always welcome. |
73 | 73 |
|
| 74 | +## Tech stack |
| 75 | + |
| 76 | +This app was modernized from Angular 9 to **Angular 17**: |
| 77 | + |
| 78 | + - **Angular 17** with standalone components (no `NgModule`s) and `@if`/`@for` control-flow syntax |
| 79 | + - **TypeScript 5.4** |
| 80 | + - **RxJS 7** |
| 81 | + - **esbuild** `application` builder (the default for new Angular 17 apps) |
| 82 | + - **ESLint** + [`angular-eslint`](https://github.com/angular-eslint/angular-eslint) (replacing TSLint/Codelyzer) |
| 83 | + - **Karma + Jasmine** for unit tests |
| 84 | + - **GitHub Actions** for CI (replacing Travis) |
| 85 | + - **Workbox** service worker for offline support, deployed to **Firebase Hosting** |
| 86 | + |
74 | 87 | ## Build process |
75 | 88 |
|
76 | | -Note: This project has been ejected (with AOT + production settings) in order to customize Webpack configurations. |
| 89 | +The project uses the standard [Angular CLI](https://angular.io/cli) workflow: |
77 | 90 |
|
78 | 91 | - Clone or download the repo |
79 | 92 | - `npm install` |
80 | | - - `npm start` to run the application with webpack-dev-server or `npm build` to kick off a fresh build and update the output directory (`dist/`) |
| 93 | + - `npm start` to run the development server at `http://localhost:4200` |
| 94 | + - `npm run build -- --configuration production` to produce an optimized build in `dist/` |
| 95 | + - `npm test` to run unit tests |
| 96 | + - `npm run lint` to lint the project |
81 | 97 |
|
82 | | -Note: Any Service Worker changes will not be reflected when you run the application locally in development. To test service worker changes: |
83 | | - - `npm build` |
84 | | - - `npm run precache` to generate the service worker file |
85 | | - - `npm run static-serve` to load the application along with the service worker asset using [live-server](https://github.com/tapio/live-server) |
| 98 | +The production build automatically generates the Workbox service worker, so offline behavior can be verified by serving the contents of `dist/` with any static file server. |
86 | 99 |
|
87 | 100 | ## Contributors |
88 | 101 |
|
|
0 commit comments