Skip to content

Commit

Permalink
Merge pull request #50 from Potits-chats/LMST2-67-Cr-er-Docs-document…
Browse files Browse the repository at this point in the history
…ation

Add documentation generator angular
  • Loading branch information
Eva1512 authored Jun 5, 2024
2 parents fd7e228 + 0b6fe8c commit 8ce5460
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Run `ng generate component component-name` to generate a new component. You can

Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.

## Documentation

Run `npm run doc` to generate the documentation. The documentation will be stored in the `documentation/` directory.

## Running unit tests

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"build": "ng build",
"build:prod": "ng build --configuration production",
"watch": "ng build --watch --configuration development",
"test": "ng test"
"test": "ng test",
"doc": "npx compodoc -p tsconfig.doc.json"
},
"private": true,
"dependencies": {
Expand Down
4 changes: 4 additions & 0 deletions tsconfig.doc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"include": ["src/**/*.ts"],
"exclude": ["src/test.ts", "src/**/*.spec.ts", "src/app/file-to-exclude.ts"]
}

1 comment on commit 8ce5460

@vercel
Copy link

@vercel vercel bot commented on 8ce5460 Jun 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.