Skip to content

Commit 8b7ff06

Browse files
authored
remove-gulp (#605)
Signed-off-by: yaacov <kobi.zamir@gmail.com>
1 parent 44d2c52 commit 8b7ff06

10 files changed

Lines changed: 388 additions & 2516 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ This repo uses **npm** and a committed **`package-lock.json`**. After cloning:
4040

4141
To refresh dependencies after editing `package.json`, run `npm install` and commit the updated lockfile.
4242

43+
Optional maintainer tasks (generated output is gitignored):
44+
45+
- `npm run clean` — remove `modbus-serial/` and `docs/gen/`
46+
- `npm run build` — copy `apis`, `ports`, `servers`, and `utils` into `modbus-serial/`
47+
- `npm run doc` — generate API HTML under `docs/gen/` (JSDoc 4 + clean-jsdoc-theme)
48+
- `npm run doc:examples` — copy `examples/` into `docs/gen/examples/`
49+
- `npm run docs` — run `doc` then `doc:examples`
50+
- `npm run publish:prepare` — runs `build` then `docs` (mirrored package tree plus generated HTML and copied examples)
51+
4352
#### What can I do with this module ?
4453

4554
This class makes it fun and easy to communicate with electronic

eslint.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ export default defineConfig([
1212
ignores: [
1313
"**/node_modules/**",
1414
"**/coverage/**",
15-
"**/.nyc_output/**"
15+
"**/.nyc_output/**",
16+
"**/docs/**",
17+
"**/modbus-serial/**"
1618
]
1719
},
1820
js.configs.recommended,

gulpfile.js

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

jsdoc.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"tags": {
3+
"allowUnknownTags": true
4+
},
5+
"source": {
6+
"include": [
7+
"README.md",
8+
"apis",
9+
"ports",
10+
"servers",
11+
"utils"
12+
]
13+
},
14+
"plugins": [
15+
"plugins/markdown"
16+
],
17+
"opts": {
18+
"encoding": "utf8",
19+
"destination": "./docs/gen",
20+
"recurse": true,
21+
"template": "./node_modules/clean-jsdoc-theme",
22+
"theme_opts": {
23+
"title": "modbus-serial",
24+
"homepageTitle": "modbus-serial",
25+
"default_theme": "light"
26+
}
27+
},
28+
"markdown": {
29+
"hardwrap": false,
30+
"idInHeadings": true
31+
}
32+
}

0 commit comments

Comments
 (0)