jalhyd v4.19.0
JaLHyd - Javascript Library For Hydraulics
See also developers documentation
Build and release
Requirements
- nodejs
Install dependencies
npm installRun unit tests using Jasmine
Debugging might not be possible because of circular dependencies generated by typescript compiler
npm run jasmineCompile (es2015 modules)
This is the preferred way of compiling, notably for usage in Web apps (ngHyd)
npm run buildCompile 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-nodeGenerate release package (es2015 modules)
npm run packageGenerate release package for Node.js (commonjs modules)
npm run package-nodeFlag suspicious language usage
npm run lintGenerate typedoc
npm run docGenerate UML diagram
The tsviz package can be used for drawing class diagram of the current code.
To install tsviz:
npm install -g tsvizThere'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 vizBoiler plate for writing CLI scripts based on JaLHyd
The folder boilerplate contains simple examples of use of JalHyd in a JS or TS script.
- Build JalHyd for node (commonJS module):
npm run build-node - Choose the js or ts folder:
cd boilerplate/jsorcd boilerplate/ts - Type
npm installto install dependencies - For the TS script, build the project with
npm run build - Run the script with
node boilerplate.jsornode build/boilerplate.js