|
1 | | -# OSF |
| 1 | +# Open Science Framework Angular Project |
2 | 2 |
|
3 | | -This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0. |
| 3 | +This is the front-end angular repository for the Open Science Framework (OSF). |
4 | 4 |
|
5 | | -## Development server |
| 5 | +## Running the project |
6 | 6 |
|
7 | | -To start a local development server, run: |
| 7 | +1. npm install |
| 8 | +2. npm run start |
| 9 | +3. browse to localhost:4200 |
8 | 10 |
|
9 | | -```bash |
10 | | -ng serve |
11 | | -``` |
| 11 | +## Testing the project |
12 | 12 |
|
13 | | -Once the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files. |
| 13 | +The project uses jest for unit testing. |
| 14 | +A "counter" script executes before and after each test run to track how many times the unit |
| 15 | +tests are run locally. The output is displayed. |
14 | 16 |
|
15 | | -## Code scaffolding |
| 17 | +1. npm run test (single test run) |
| 18 | +2. npm run test:watch (single run after file save) |
| 19 | +3. npm run test:coverage (code coverage results) |
| 20 | + - all commits must pass the local pipeline for test coverage |
| 21 | +4. npm run test:check-coverage-thresholds |
| 22 | + - Verifies newly added tests match the thresholds |
| 23 | + - This is only used until we hit 100% test coverage |
| 24 | + - all commits must pass the local pipeline for test coverage |
16 | 25 |
|
17 | | -Angular CLI includes powerful code scaffolding tools. To generate a new component, run: |
| 26 | +## Github pipeline |
18 | 27 |
|
19 | | -```bash |
20 | | -ng generate component component-name |
21 | | -``` |
| 28 | +The `.github` folder contains the following: |
22 | 29 |
|
23 | | -For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run: |
24 | | - |
25 | | -```bash |
26 | | -ng generate --help |
27 | | -``` |
28 | | - |
29 | | -## Building |
30 | | - |
31 | | -To build the project run: |
32 | | - |
33 | | -```bash |
34 | | -ng build |
35 | | -``` |
36 | | - |
37 | | -This will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed. |
38 | | - |
39 | | -Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs. |
40 | | - |
41 | | -## Additional Resources |
42 | | - |
43 | | -For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page. |
| 30 | +1. The test run "counter" scripts |
| 31 | +2. The "counter" file |
| 32 | +3. The github action work flow scripts |
| 33 | +4. The github PR templates |
0 commit comments