Essential utilities for all your javascript projects.
JustJs is a fully-tested and well-documented open-source library that collects heavily-used utilities for javascript environments. Visit justjs.github.io to know more.
- Run
npm run devand wait for Jest to start. - Run
npm run doc:devto check documentation or update the static website. —The browser will automatically start and changes to the source code will update the documentation. Be mindful that it may take some time to automatically reload the website.
You can also start npm run doc:dev with the following environment variables:
GIT_STATIC_REPOSITORYis the url to the repository for the static website. By default it's set to the production url, but you can change it to your local clone.
- Run
npm testto run unit test on --ci mode. - Run
npm run test:unitto run unit tests. - Run
npm run test:integrationto run integration tests. - Run
npm run test:e2eto run integrity tests. - Run
npm run test:devto run jest on --watch & --coverage mode. - Run
npm run test:jestto run jest. - Run
npm run test:coverageto runnpm teston --coverage mode. - Run
npm run test:coverage:coverallsto update coveralls info (internal use only).
- Run
npm run lintto run eslint. - Run
npm run styleto runnpm run linton --fix mode.
- Run
npm run buildto build the distributed files under the/distdirectory and generate its documentation under/docs/public. - Run
npm run doc:deployto deploy the generated documentation to the static website.
Releases are done in the releases/M.m branch, where M is a major version, and m is the minor version.
Releasing and deployments are done automatically when a release tag (the one generated by npm version) is pushed to this repository.
Releases are generated using the npm run release $next-version for now, where $next-version is a valid version in the semver 2.0 format.
This project publishes all documentation written in the source code to justjs.github.io. Just make sure you write valid JSDOC comments.
All source code for the static website lives under docs, but only docs/public contains the generated content that will be pushed to another repository, in order to be published on justjs.github.io.
The following are a list of useful scripts:
- Run
npm run doc:devto watch for changes, build the website, and update the generated documentation continuously. - Run
npm run doc v$some-versionto document$some-version(don't forget the "v" prefix). - Run
npm run doc:testto run end-to-end tests. - Run
npm run doc:jsdocto run JSDOC. - Run
npm run doc:jsdoc:devto watch for changes and update the generated documentation continuously. Same asnpm run doc:dev, for now. - Run
npm run doc:checkto serve the generated website. - Run
npm run doc:minifyto minify the generated documentation.
This project is under the BSD 3-Clause License, unless otherwise stated.