Skip to content

Commit

Permalink
feat(docs): added API docs generation to packages and starter. Closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
dsebastien committed May 24, 2018
1 parent bb4b0b1 commit 50c610f
Show file tree
Hide file tree
Showing 9 changed files with 61 additions and 22 deletions.
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"@angular/router": "6.0.2",
"@commitlint/cli": "6.2.0",
"@commitlint/config-conventional": "6.1.3",
"@compodoc/compodoc": "1.1.3",
"@ngtools/json-schema": "1.1.0",
"codelyzer": "4.3.0",
"conventional-changelog-cli": "1.3.22",
Expand Down Expand Up @@ -65,7 +66,7 @@
"build:stark-testing": "npm run build -- --packages=stark-testing",
"build:stark-ui": "npm run build -- --packages=stark-ui",
"clean": "npx rimraf ./dist",
"clean:all": "npm run clean && npm run clean:stark-build && npm run clean:stark-core && npm run clean:stark-testing && npm run clean:starter",
"clean:all": "npm run clean && npm run clean:stark-build && npm run clean:stark-core && npm run clean:stark-ui && npm run clean:stark-testing && npm run clean:starter",
"clean:stark-build": "cd packages/stark-build && npm run clean && cd ../..",
"clean:stark-core": "cd packages/stark-core && npm run clean && cd ../..",
"clean:stark-testing": "cd packages/stark-testing && npm run clean && cd ../..",
Expand All @@ -80,6 +81,12 @@
"clean:modules:starter": "cd starter && npm run clean:modules && cd ..",
"commit": "./node_modules/.bin/git-cz",
"commitmsg": "commitlint -e $GIT_PARAMS",
"docs": "npm run docs:clean && npm run docs:all",
"docs:all": "npm run docs:stark-core && npm run docs:stark-ui",
"docs:clean": "npx rimraf reports/api-docs",
"docs:stark-core": "cd packages/stark-core && npm run docs && cd ../..",
"docs:stark-ui": "cd packages/stark-ui && npm run docs && cd ../..",
"docs:starter": "cd starter && npm run docs && cd ..",
"generate:changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
"generate:changelog-recent": "conventional-changelog -p angular | tail -n +3",
"lint": "tslint --config tslint.json --project ./packages/tsconfig.json --format codeFrame",
Expand Down
11 changes: 11 additions & 0 deletions packages/stark-build/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[![NPM version](https://img.shields.io/npm/v/@nationalbankbelgium/stark-build.svg)](https://www.npmjs.com/package/@nationalbankbelgium/stark-build)
[![npm](https://img.shields.io/npm/dm/@nationalbankbelgium/stark-build.svg)](https://www.npmjs.com/package/@nationalbankbelgium/stark-build)
[![Build Status](https://travis-ci.org/NationalBankBelgium/stark.svg?branch=master)](https://travis-ci.org/NationalBankBelgium/stark)
[![Dependency Status](https://david-dm.org/NationalBankBelgium/stark-build.svg)](https://david-dm.org/NationalBankBelgium/stark-build)
[![devDependency Status](https://david-dm.org/NationalBankBelgium/stark-build/dev-status.svg)](https://david-dm.org/NationalBankBelgium/stark-build#info=devDependencies)
[![License](https://img.shields.io/cocoapods/l/AFNetworking.svg)](LICENSE)

# Stark Build

Stark's build module (aka stark-build) provides the build configurations of the Stark framework.
It includes our default configuration for webpack, json-server, prettier, stylelint, ...
10 changes: 10 additions & 0 deletions packages/stark-core/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[![NPM version](https://img.shields.io/npm/v/@nationalbankbelgium/stark-core.svg)](https://www.npmjs.com/package/@nationalbankbelgium/stark-core)
[![npm](https://img.shields.io/npm/dm/@nationalbankbelgium/stark-core.svg)](https://www.npmjs.com/package/@nationalbankbelgium/stark-core)
[![Build Status](https://travis-ci.org/NationalBankBelgium/stark.svg?branch=master)](https://travis-ci.org/NationalBankBelgium/stark)
[![Dependency Status](https://david-dm.org/NationalBankBelgium/stark-core.svg)](https://david-dm.org/NationalBankBelgium/stark-core)
[![devDependency Status](https://david-dm.org/NationalBankBelgium/stark-core/dev-status.svg)](https://david-dm.org/NationalBankBelgium/stark-core#info=devDependencies)
[![License](https://img.shields.io/cocoapods/l/AFNetworking.svg)](LICENSE)

# Stark Core

Stark's core module (aka stark-core) provides the foundations of the Stark framework.
1 change: 1 addition & 0 deletions packages/stark-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"clean": "npx rimraf dist",
"clean:modules": "npx rimraf ./node_modules package-lock.json",
"clean:all": "npm run clean && npm run clean:modules",
"docs": "node ../../node_modules/@compodoc/compodoc/bin/index-cli src --theme material --tsconfig ../tsconfig.json --output ../../reports/api-docs/stark-core",
"ngc": "node ./../node_modules/@angular/compiler-cli/src/main.js -p tsconfig-build.json",
"lint": "node ../../node_modules/tslint/bin/tslint --config tslint.json --project ./tsconfig.spec.json --format codeFrame",
"test-fast": "node ./node_modules/@nationalbankbelgium/stark-testing/node_modules/karma/bin/karma start ./karma.conf.typescript.js",
Expand Down
11 changes: 11 additions & 0 deletions packages/stark-testing/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[![NPM version](https://img.shields.io/npm/v/@nationalbankbelgium/stark-testing.svg)](https://www.npmjs.com/package/@nationalbankbelgium/stark-testing)
[![npm](https://img.shields.io/npm/dm/@nationalbankbelgium/stark-testing.svg)](https://www.npmjs.com/package/@nationalbankbelgium/stark-testing)
[![Build Status](https://travis-ci.org/NationalBankBelgium/stark.svg?branch=master)](https://travis-ci.org/NationalBankBelgium/stark)
[![Dependency Status](https://david-dm.org/NationalBankBelgium/stark-testing.svg)](https://david-dm.org/NationalBankBelgium/stark-testing)
[![devDependency Status](https://david-dm.org/NationalBankBelgium/stark-testing/dev-status.svg)](https://david-dm.org/NationalBankBelgium/stark-testing#info=devDependencies)
[![License](https://img.shields.io/cocoapods/l/AFNetworking.svg)](LICENSE)

# Stark Testing

Stark's testing module (aka stark-testing) provides the testing facilities of the Stark framework.
It includes the default testing dependencies that we recommend (Jasmine/Karma) and provides configuration files for those, as well as support for code coverage reports.
11 changes: 11 additions & 0 deletions packages/stark-ui/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[![NPM version](https://img.shields.io/npm/v/@nationalbankbelgium/stark-ui.svg)](https://www.npmjs.com/package/@nationalbankbelgium/stark-ui)
[![npm](https://img.shields.io/npm/dm/@nationalbankbelgium/stark-ui.svg)](https://www.npmjs.com/package/@nationalbankbelgium/stark-ui)
[![Build Status](https://travis-ci.org/NationalBankBelgium/stark.svg?branch=master)](https://travis-ci.org/NationalBankBelgium/stark)
[![Dependency Status](https://david-dm.org/NationalBankBelgium/stark-ui.svg)](https://david-dm.org/NationalBankBelgium/stark-ui)
[![devDependency Status](https://david-dm.org/NationalBankBelgium/stark-ui/dev-status.svg)](https://david-dm.org/NationalBankBelgium/stark-ui#info=devDependencies)
[![License](https://img.shields.io/cocoapods/l/AFNetworking.svg)](LICENSE)

# Stark UI

Stark's UI module (aka stark-ui) provides the UI related features of the Stark framework.
It includes the UI component kit of Stark as well as other services and utilities.
1 change: 1 addition & 0 deletions packages/stark-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"clean": "npx rimraf dist",
"clean:modules": "npx rimraf ./node_modules package-lock.json",
"clean:all": "npm run clean && npm run clean:modules",
"docs": "node ../../node_modules/@compodoc/compodoc/bin/index-cli src --theme material --tsconfig ../tsconfig.json --output ../../reports/api-docs/stark-ui",
"ngc": "node ./../node_modules/@angular/compiler-cli/src/main.js -p tsconfig-build.json",
"lint": "node ../../node_modules/tslint/bin/tslint --config tslint.json --project ./tsconfig.spec.json --format codeFrame",
"test-fast": "node ./node_modules/@nationalbankbelgium/stark-testing/node_modules/karma/bin/karma start ./karma.conf.typescript.js",
Expand Down
14 changes: 8 additions & 6 deletions starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@
"clean:modules": "npm run rimraf -- node_modules package-lock.json",
"clean:install": "npm set progress=false && npm install",
"clean": "npm cache clean --force && npm run rimraf -- node_modules doc coverage reports dist compiled dll",
"compodoc": "compodoc",
"docker": "docker",
"docs": "npm run typedoc -- --options typedoc.json --exclude '**/*.spec.ts' ./src/",
"docs": "npm run docs:clean && compodoc src --theme material --tsconfig ./tsconfig.json --output ./reports/api-docs",
"docs:clean": "npx rimraf reports/api-docs",
"e2e:live": "npm-run-all -p -r server:prod:ci protractor:live",
"e2e:travis": "npm-run-all -p -r server:prod:ci protractor:delay",
"e2e": "npm-run-all -p -r server:prod:ci protractor",
Expand Down Expand Up @@ -85,7 +87,6 @@
"test-fast:ci": "karma start karma.conf.typescript.ci.js",
"tsc": "tsc",
"tslint": "tslint",
"typedoc": "typedoc",
"version": "npm run build",
"watch:dev:hmr": "npm run watch:dev -- --hot",
"watch:dev": "npm run build:dev -- --watch",
Expand Down Expand Up @@ -119,8 +120,8 @@
"@angular/platform-server": "6.0.2",
"@angular/router": "6.0.2",
"@mdi/angular-material": "2.3.54",
"@nationalbankbelgium/stark-core": "file:../dist/packages-dist/stark-core/nationalbankbelgium-stark-core-10.0.0-alpha.2-e0e5d54.tgz",
"@nationalbankbelgium/stark-ui": "file:../dist/packages-dist/stark-ui/nationalbankbelgium-stark-ui-10.0.0-alpha.2-e0e5d54.tgz",
"@nationalbankbelgium/stark-core": "file:../dist/packages-dist/stark-core/nationalbankbelgium-stark-core-10.0.0-alpha.2-c7f4955.tgz",
"@nationalbankbelgium/stark-ui": "file:../dist/packages-dist/stark-ui/nationalbankbelgium-stark-ui-10.0.0-alpha.2-c7f4955.tgz",
"@uirouter/visualizer": "6.0.0",
"core-js": "2.5.6",
"eligrey-classlist-js-polyfill": "1.2.20180112",
Expand All @@ -135,11 +136,12 @@
"zone.js": "0.8.26"
},
"devDependencies": {
"@nationalbankbelgium/stark-build": "file:../dist/packages-dist/stark-build/nationalbankbelgium-stark-build-10.0.0-alpha.2-e0e5d54.tgz",
"@nationalbankbelgium/stark-testing": "file:../dist/packages-dist/stark-testing/nationalbankbelgium-stark-testing-10.0.0-alpha.2-e0e5d54.tgz",
"@nationalbankbelgium/stark-build": "file:../dist/packages-dist/stark-build/nationalbankbelgium-stark-build-10.0.0-alpha.2-c7f4955.tgz",
"@nationalbankbelgium/stark-testing": "file:../dist/packages-dist/stark-testing/nationalbankbelgium-stark-testing-10.0.0-alpha.2-c7f4955.tgz",
"@types/core-js": "0.9.46",
"@types/hammerjs": "2.0.35",
"@types/node": "8.10.15",
"@compodoc/compodoc": "1.1.3",
"cross-env": "^5.1.5",
"find-root": "^1.1.0",
"gh-pages": "1.1.0",
Expand Down
15 changes: 0 additions & 15 deletions starter/typedoc.json

This file was deleted.

0 comments on commit 50c610f

Please sign in to comment.