Boilerplate for adding embedded samples in the Node.js docs. Loosely based on amp-samples.
- JSDoc type annotations checked w/ both the TypeScript & Closure compilers
- JavaScript & Markdown linted using the Node.js core ESLint & remark plugins
- Source files checked to conform w/ rules specified in the Node.js core repo
- Fork this repository
- Create a new branch for your documentation samples
- Clone your forked repository and checkout your new branch
- Add pre-existing sources from the Node.js core repo to the
repomap.json
file - Run
npm install
to bootstrap the project workspace & run initial checks - Correct failing lint/typechecks discovered when running
npm test
Warning: Local files not added to repomap.json
vanish while bootstrapping!
Tip: See branch dummy-loader
for a demo.
P.S. PRs adding type annotations to the Node builtins extern file are welcome!