Skip to content

altoinu/random_code_snippets_nodejs

Repository files navigation

random_code_snippets_nodejs

This project contains random small code snippets that don't really need full project of their own, notes, and anything that could be useful for something someday.

Writing README stuff

https://help.github.com/en/articles/basic-writing-and-formatting-syntax

Node stuff

Initial set up

npm install

To run

node src/[whatever file you want to run]

Lint

npm run lint:fix

Generating docs

npm run build:doc
  • Runs both apidoc and jsdoc. Make sure they are installed before running.

apidoc

npm run build:doc:apidoc

jsdoc

npm run build:doc:jsdoc

Bumping version

Use one of release:xxx:xxx scripts to do to update version on the main branch (via npm version). It will also create a new commit and a tag, then automatically git push-es them to the origin.

For more info:

# bump up release type version, and mark as beta
npm run release:beta:patch

# bump up beta/rc build number only
npm run release:beta
npm run release:rc

# bump up release type version for final release
npm run release:minor

About

Random small code snippets, notes, could be useful for something

Resources

Stars

Watchers

Forks

Packages

No packages published