Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gbmhunter/ninjacalc

An embedded engineering calculator toolbox for doing calculations in a breeze.
https://github.com/gbmhunter/ninjacalc

calculations calculator embedded engineering nextjs react web webstorm

Last synced: 1 day ago
JSON representation

An embedded engineering calculator toolbox for doing calculations in a breeze.

Awesome Lists containing this project

README

        

# NinjaCalc

![Build Status](https://github.com/gbmhunter/NinjaCalc/workflows/Node.js%20CI/badge.svg)

## Dev Usage

To install dependencies and start development server (`yarn` is recommended):

```bash
yarn install
yarn dev
```

By default, the local server will start at `localhost:3000`.

To run all unit/functional tests:

```bash
yarn test
```

To run unit/functional tests which match a particular pattern:

```bash
yarn test
```

e.g. to run all tests in `utils/standard-resistance-finder.test.js`:

```bash
yarn test standard-resistance-finder
```

## Tests

Unit tests that don't need to mount react components are saved in `.test.js` files next to the source code. Tests which need to mount a react component (e.g. functional tests for each calculator) are in `__tests__/`.

## CICD

Unit/functional tests are run by GitHub actions. These are configured by the file `.github/workflows/node.js.yaml`.

## Releasing

Update the `CHANGELOG.md` with the changes since the last release. Make sure to update the version in `package.json`, this is pulled in by the client-side javascript and displayed in the app.

Deployment is done automatically when changes are pushed to the `master` branch. Make sure to `git tag` with the correct version number. Deployment is done by Vercel, info can be found at https://vercel.com/gbmhunter/ninja-calc.