Skip to content
Snippets Groups Projects
user avatar
Mathias Chouet authored
Resolve "Régime uniforme: Erreur de calcul de la vitesse"

Closes #206

See merge request cassiopee/jalhyd!68
19f3ba9b
History

JaLHyd - Javascript Library For Hydraulics

See also developers documentation

Build and release

Requirements

  • nodejs

Install dependencies

npm install

Run unit tests using Jasmine

Debugging might not be possible because of circular dependencies generated by typescript compiler

npm run jasmine

Run unit tests using Karma

This allows debugging in browser

npm run karma

Compile (es2015 modules)

This is the preferred way of compiling, notably for usage in Web apps (ngHyd)

npm run build

Compile for Node.js (commonjs modules)

Use this if you want to write a CLI application in JS or TS, that will be executed by Node.js (see examples in /boilerplate)

npm run build-node

Generate release package (es2015 modules)

npm run package

Generate release package for Node.js (commonjs modules)

npm run package-node

Flag suspicious language usage

npm run lint

Generate typedoc

npm run doc

Generate UML diagram

The tsviz package can be used for drawing class diagram of the current code.

To install tsviz:

npm install -g tsviz

There's currently a bug on debian like distribution due to a wrong declaration of graphviz path in the code: https://github.com/joaompneves/tsviz/issues/5 To work around, you can create a link to the good path: sudo ln -s /usr/bin/dot /usr/local/bin/dot

To draw the diagram:

npm run viz

Release policy

Use semantic versioning.

Before releasing a new stable version, one should complete the following files

  • CHANGELOG.md
  • package.json (update "version")

Every stable version should be tagged with both

  • a tag stating compatibility with NgHyd, of the form nghyd_X.Y.Z
  • the stable tag

The stable tag should be set after the NgHyd compatibility tag, so that git describe returns stable (latest tag).

Here are the steps to follow for an example 4.5.0 version

git tag -fa nghyd_4.5.0
git tag -fa stable
git push --tags --force