Skip to content

Commit 796da64

Browse files
authored
Merge pull request #4 from jfet97/feature/typedoc
Feature/typedoc
2 parents 77f80de + bfb57c8 commit 796da64

20 files changed

+411
-41
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ language: node_js
22

33
node_js:
44
- "10"
5+
56
script:
67
- npm run test:ci
78

89
branches:
910
only:
1011
- master
12+
13+
1114

docs/.vuepress/config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ module.exports = {
1212
text: 'Guide',
1313
link: '/guide/',
1414
},
15+
{
16+
text: 'API',
17+
link: 'https://jfet97.github.io/csp/api/',
18+
},
1519
{
1620
text: 'GitHub',
1721
link: 'https://github.com/jfet97/csp',

docs/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ actionText: Get Started →
55
actionLink: /guide/
66
footer: MIT Licensed | Copyright © 2019-present Andrea Simone Costa
77
---
8-
8+
::: warning
9+
Node v10.0.0 or greater is required.
10+
:::

docs/guide/operators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const result2 = await resCh.take(); // will receive 3
8181

8282
`source.map(value => value)` -> `channel`
8383

84-
The `map` method takes a `mapper` function and returns a new channel. Each value inserted into the `source` will be passed to the `mapper` function and the result of each computation will be inserted into the resulting `channel`.
84+
The `map` method takes a `mapper` function and returns a new channel. Each value inserted into the `source` will be passed to the `mapper` function and the result of each computation will be inserted into the returned `channel`.
8585

8686
```js
8787
require("@jfet97/csp/dist/operators/map");

package-lock.json

Lines changed: 170 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
"dev": "tsc -w -p tsconfig.build.json",
1010
"test": "jest --watchAll --coverage",
1111
"test:ci": "jest",
12-
"deploy": "gh-pages -d /docs/.vuepress/dist",
1312
"docs:dev": "vuepress dev docs",
14-
"docs:build": "vuepress build docs"
13+
"docs:build": "vuepress build docs",
14+
"api:build": "typedoc",
15+
"deploy": "gh-pages -d /docs/.vuepress/dist"
1516
},
1617
"files": [
1718
"dist"
@@ -37,8 +38,11 @@
3738
"jest": "^24.5.0",
3839
"ts-jest": "^24.0.0",
3940
"ts-node": "^8.0.3",
41+
"typedoc": "^0.14.2",
42+
"typedoc-plugin-nojekyll": "^1.0.1",
4043
"typescript": "^3.3.3333",
4144
"vuepress": "^0.14.10",
4245
"webpack-dev-middleware": "^3.6.0"
43-
}
46+
},
47+
"dependencies": {}
4448
}

0 commit comments

Comments
 (0)