@zettelyay/api-client v4.2.1
Zettel: Public API Client
API helper tools for client-side.
Installation
$ npm install @zettelyay/api-clientDevelopment
Clone the repository locally:
$ git clone https://github.com/zettelyay/api-client.gitInstall the dependencies:
$ cd api-client
$ npm installIt's recommended to use VS Code to develop this project. You need to have Prettier and ESLint extensions to be installed on your IDE.
Linting will be called automatically before committing. Any linting error will abort the process. Therefore, you possibly need to lint the staged changes manualy before trying to commit them yourself and fix all the errors and as much as possible of warnings first.
Lint check before commit:
$ npm run lint-staged # Alternatively: $ npm run .lPublication
Publish a new version of the NPM package:
- Push all the changes. The workspace needs to be cleaned.
- Make sure you're on
masterbranch.
$ npm version patch # / minor / major / any other valid semantic versionMisc
Validate all peer dependencies:
$ npm run peers.validateUpgrade all Zettel's official dependencies:
$ npm run zettel.upgrade # Alternatively: $ npm run .uCheck for all the updates available on the dependencies:
$ npm run updates.checkUpgrade all the dependencies to their very latest versions:
$ npm run updates.installView GIT history visualized:
$ npm run gourceYou probably need to install
gourcelocally first. See this link.
Summarize the size of the code base in lines of code:
$ npm run statusCopyright: Zettel, 2020-23