mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Merge pull request #71 from 4Science/typedoc
Typedoc configuration added
This commit is contained in:
11
README.md
11
README.md
@@ -41,6 +41,7 @@ Not sure where to start? watch the training videos linked in the [Introduction t
|
||||
* [Running in production mode](#running-in-production-mode)
|
||||
* [Cleaning](#cleaning)
|
||||
* [Testing](#testing)
|
||||
* [Documentation](#documentation)
|
||||
* [Other commands](#other-commands)
|
||||
* [Recommended Editors/IDEs](#recommended-editorsides)
|
||||
* [Collaborating](#collaborating)
|
||||
@@ -148,6 +149,15 @@ To run all the tests (e.g.: to run tests with Continuous Integration software) y
|
||||
`yarn run ci`
|
||||
Keep in mind that this command prerequisites are the sum of unit test and E2E tests.
|
||||
|
||||
##Documentation
|
||||
To build the code documentation we use [TYPEDOC](http://typedoc.org). TYPEDOC is a documentation generator for TypeScript projects.
|
||||
It extracts informations from properly formatted comments that can be written within the code files.
|
||||
Follow the instructions [here](http://typedoc.org/guides/doccomments/) to know how to make those comments.
|
||||
|
||||
Run:
|
||||
`yarn run docs`
|
||||
to produce the documentation that will be available in the 'doc' folder.
|
||||
|
||||
## Other commands
|
||||
There are many more commands in the `scripts` section of `package.json`. Most of these are executed by one of the commands mentioned above.
|
||||
|
||||
@@ -208,6 +218,7 @@ dspace-angular
|
||||
├── tsconfig.aot.json * TypeScript config for production builds
|
||||
├── tsconfig.json * TypeScript config for development build
|
||||
├── tslint.json * TSLint (https://palantir.github.io/tslint/) configuration
|
||||
├── typedoc.json * TYPEDOC configuration
|
||||
├── yarn.lock * Yarn lockfile (https://yarnpkg.com/en/docs/yarn-lock)
|
||||
├── webpack.config.ts * Webpack (https://webpack.github.io/) config for development builds
|
||||
├── webpack.test.config.ts * Webpack (https://webpack.github.io/) config for testing
|
||||
|
@@ -59,7 +59,7 @@
|
||||
"debug:start": "yarn run build && yarn run debug:server",
|
||||
"debug:build": "node-nightly --inspect --debug-brk node_modules/webpack/bin/webpack.js",
|
||||
"debug:build:prod": "node-nightly --inspect --debug-brk node_modules/webpack/bin/webpack.js --config webpack.prod.config.ts",
|
||||
"docs": "typedoc --options typedoc.json ./src",
|
||||
"docs": "typedoc --options typedoc.json ./src/",
|
||||
"lint": "tslint \"src/**/*.ts\" || true",
|
||||
"global": "npm install -g @angular/cli nodemon npm-check-updates rimraf ts-node typedoc typescript webpack webpack-bundle-size-analyzer rollup marked node-gyp",
|
||||
"ci": "yarn run lint && yarn run build:prod:ngc:json && yarn run test && npm-run-all -p -r server e2e",
|
||||
@@ -180,7 +180,7 @@
|
||||
"ts-node": "1.7.2",
|
||||
"tslint": "4.0.2",
|
||||
"tslint-loader": "3.3.0",
|
||||
"typedoc": "0.5.1",
|
||||
"typedoc": "0.5.7",
|
||||
"typescript": "2.0.10",
|
||||
"v8-lazy-parse-webpack-plugin": "0.3.0",
|
||||
"webpack": "2.1.0-beta.27",
|
||||
|
19
typedoc.json
Normal file
19
typedoc.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"out" : "./doc",
|
||||
"mode" : "modules",
|
||||
"module" : "commonjs",
|
||||
"target" : "ES5",
|
||||
"theme" : "default",
|
||||
"name" : "Angular 2 UI for DSpace",
|
||||
"readme" : "./README.md",
|
||||
"exclude" : "**/*+(spec.ts|po.ts|index.ts|.json|.js|.config.ts)",
|
||||
"excludeExternals" : "true",
|
||||
"ignoreCompilerErrors" : "true",
|
||||
"experimentalDecorators" : "true",
|
||||
"emitDecoratorMetadata" : "true",
|
||||
"moduleResolution" : "node",
|
||||
"preserveConstEnums" : "true",
|
||||
"stripInternal" : "true",
|
||||
"suppressExcessPropertyErrors" : "true",
|
||||
"suppressImplicitAnyIndexErrors": "true"
|
||||
}
|
Reference in New Issue
Block a user