Merge pull request #71 from 4Science/typedoc

Typedoc configuration added
This commit is contained in:
Art Lowel
2017-03-21 10:38:40 +01:00
committed by GitHub
3 changed files with 32 additions and 2 deletions

View File

@@ -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) * [Running in production mode](#running-in-production-mode)
* [Cleaning](#cleaning) * [Cleaning](#cleaning)
* [Testing](#testing) * [Testing](#testing)
* [Documentation](#documentation)
* [Other commands](#other-commands) * [Other commands](#other-commands)
* [Recommended Editors/IDEs](#recommended-editorsides) * [Recommended Editors/IDEs](#recommended-editorsides)
* [Collaborating](#collaborating) * [Collaborating](#collaborating)
@@ -148,6 +149,15 @@ To run all the tests (e.g.: to run tests with Continuous Integration software) y
`yarn run ci` `yarn run ci`
Keep in mind that this command prerequisites are the sum of unit test and E2E tests. 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 ## 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. 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.aot.json * TypeScript config for production builds
├── tsconfig.json * TypeScript config for development build ├── tsconfig.json * TypeScript config for development build
├── tslint.json * TSLint (https://palantir.github.io/tslint/) configuration ├── tslint.json * TSLint (https://palantir.github.io/tslint/) configuration
├── typedoc.json * TYPEDOC configuration
├── yarn.lock * Yarn lockfile (https://yarnpkg.com/en/docs/yarn-lock) ├── yarn.lock * Yarn lockfile (https://yarnpkg.com/en/docs/yarn-lock)
├── webpack.config.ts * Webpack (https://webpack.github.io/) config for development builds ├── webpack.config.ts * Webpack (https://webpack.github.io/) config for development builds
├── webpack.test.config.ts * Webpack (https://webpack.github.io/) config for testing ├── webpack.test.config.ts * Webpack (https://webpack.github.io/) config for testing

View File

@@ -59,7 +59,7 @@
"debug:start": "yarn run build && yarn run debug:server", "debug:start": "yarn run build && yarn run debug:server",
"debug:build": "node-nightly --inspect --debug-brk node_modules/webpack/bin/webpack.js", "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", "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", "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", "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", "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", "ts-node": "1.7.2",
"tslint": "4.0.2", "tslint": "4.0.2",
"tslint-loader": "3.3.0", "tslint-loader": "3.3.0",
"typedoc": "0.5.1", "typedoc": "0.5.7",
"typescript": "2.0.10", "typescript": "2.0.10",
"v8-lazy-parse-webpack-plugin": "0.3.0", "v8-lazy-parse-webpack-plugin": "0.3.0",
"webpack": "2.1.0-beta.27", "webpack": "2.1.0-beta.27",

19
typedoc.json Normal file
View 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"
}