Skip to content

Commit f6413ec

Browse files
committed
build(doc): initialized project documents
1 parent c1bb0da commit f6413ec

File tree

14 files changed

+308
-28
lines changed

14 files changed

+308
-28
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ tsconfig.tsbuildinfo
88
*.ts.map
99
!commitlint.config.js
1010
!/eslint.config.js
11+
/tmp/

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,38 @@ The utility functions/classes/constants for JavaScript/TypeScript.
1414
- TypeScript v5.0.0 (or newer)
1515
- Node.js v18.0.0 (or newer)
1616

17+
## Namespaces
18+
19+
The [bundle package `@litert/utils`](https://www.npmjs.com/package/@litert/utils) includes all utility functions/classes/constants, exported each sub-package as a namespace.
20+
21+
- `Root Namespace`
22+
23+
These sub-packages are exported at the root namespace of the bundle package:
24+
- [@litert/utils-flow-control](https://www.npmjs.com/package/@litert/utils-flow-control)
25+
- [@litert/utils-ts-types](https://www.npmjs.com/package/@litert/utils-ts-types)
26+
27+
- `Namespace Array` (Sub-package: [@litert/utils-array](https://www.npmjs.com/package/@litert/utils-array))
28+
- `Namespace Network` (Sub-package: [@litert/utils-network](https://www.npmjs.com/package/@litert/utils-network))
29+
- `Namespace Number` (Sub-package: [@litert/utils-number](https://www.npmjs.com/package/@litert/utils-number))
30+
- `Namespace Object` (Sub-package: [@litert/utils-object](https://www.npmjs.com/package/@litert/utils-object))
31+
- `Namespace String` (Sub-package: [@litert/utils-string](https://www.npmjs.com/package/@litert/utils-string))
32+
1733
## Installation
1834

1935
```sh
2036
npm i @litert/utils --save
2137
```
2238

39+
## Documentation
40+
41+
- [Array](https://litert.org/projects/utils.js/api-docs/array/)
42+
- [Flow Control](https://litert.org/projects/utils.js/api-docs/flow-control/)
43+
- [Network](https://litert.org/projects/utils.js/api-docs/network/)
44+
- [Number](https://litert.org/projects/utils.js/api-docs/number/)
45+
- [Object](https://litert.org/projects/utils.js/api-docs/object/)
46+
- [String](https://litert.org/projects/utils.js/api-docs/string/)
47+
- [Typescript Types](https://litert.org/projects/utils.js/api-docs/ts-types/)
48+
2349
## License
2450

2551
This library is published under [Apache-2.0](https://github.com/litert/utils.js/blob/master/LICENSE) license.

package-lock.json

Lines changed: 191 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"@litert/ottoia": "^0.4.4",
3131
"@types/node": "^22.10.2",
3232
"husky": "^9.1.7",
33+
"typedoc": "^0.28.5",
3334
"typescript": "^5.7.2"
3435
},
3536
"ottoia": {

packages/bundle/README.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

packages/bundle/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"homepage": "https://github.com/litert/utils.js#readme",
1616
"scripts": {
1717
"ottoia:clean": "rm -rf lib tsconfig.tsbuildinfo",
18-
"ottoia:prepublish": "cp ../../LICENSE ./",
19-
"ottoia:postpublish": "rm LICENSE",
18+
"ottoia:prepublish": "cp ../../LICENSE ./ && cp ../../LICENSE ./README.md",
19+
"ottoia:postpublish": "rm LICENSE README.md",
2020
"prepublishOnly": "echo \"Please use ottoia publishing this package!\"; exit 1;"
2121
},
2222
"license": "Apache-2.0",

packages/partials/array/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ The utility functions/classes/constants about arrays for JavaScript/TypeScript.
2020
npm i @litert/utils-array --save
2121
```
2222

23+
## Documentation
24+
25+
- [en-US](https://litert.org/projects/utils.js/api-docs/array/)
26+
2327
## License
2428

2529
This library is published under [Apache-2.0](https://github.com/litert/utils.js/blob/master/LICENSE) license.

packages/partials/flow-control/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ The utility functions/classes/constants about flow-controlling for JavaScript/Ty
2020
npm i @litert/utils-flow-control --save
2121
```
2222

23+
## Documentation
24+
25+
- [en-US](https://litert.org/projects/utils.js/api-docs/flow-control/)
26+
2327
## License
2428

2529
This library is published under [Apache-2.0](https://github.com/litert/utils.js/blob/master/LICENSE) license.

0 commit comments

Comments
 (0)