Skip to content

Commit 810a2e7

Browse files
committed
Using api-extractor now, bunch of ts-doc tags & build process linting/updating
1 parent a33c91f commit 810a2e7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+2949
-1960
lines changed

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,7 @@ dist
132132
.idea
133133
creds.json
134134
.DS_Store
135-
build.zip
135+
build.zip
136+
137+
temp
138+
tsdoc-metadata.json

DEVGUIDE.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,22 @@ If a new tag really, really, needs to be added, it can be done by adding a new e
6565
format, and updating the `assertTestsEnabled` function. However, this should be done sparingly, as it can make the
6666
test suite harder to manage.
6767

68-
### Linting
68+
## Linting
6969
Run `npm run lint` to run ESLint.
7070
ESLint will point out any formatting and code quality issues it finds.
7171
You should try to run `npm run lint` before committing to minimize risk of regressions.
7272

73+
## Building the library
74+
At the moment, you need to be using a unix-like system to build the library, as it uses a small shell script,
75+
which can be found in `scripts/build.sh`, and run manually enough on Windows if necessary.
76+
77+
To build it, just run `npm run build`, which does the following:
78+
- Deletes the `dist` directory
79+
- Updates the versioning file (`src/version.ts`)
80+
- Runs `tsc` to compile the TypeScript files & resolves path aliases w/ `tsc-alias`
81+
- Uses `api-extractor` to generate the API report & generate a rolled-up `.d.ts` file
82+
- Deletes any extraneous `.d.ts` files
83+
7384
## Building API Reference Documentation
7485
API Documentation of this library is generated using [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown)
7586

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Next steps:
9393

9494
`astra-db-ts`'s abstractions for working at the data and admin layers are structured as depicted by this diagram:
9595

96-
![Class hierarchy diagram](assets/imgs/class-hierarchy.png)
96+
![Class hierarchy diagram](etc/imgs/class-hierarchy.png)
9797

9898
Here's a small admin-oriented example:
9999

0 commit comments

Comments
 (0)