Skip to content
Snippets Groups Projects
README.md 990 B
Newer Older
# JaLHyd : Javascript Library For Hydraulics
## All the things to know for developping the library
mathias.chouet's avatar
mathias.chouet committed
The library needs nodeJS installed.
Then, you can install the necessary packages of the library: 
`npm install`
### To compile the typescript code
David Dorchies's avatar
David Dorchies committed
`npm run build`
### To generate locally installable package

### To compile and test code with jasmine

mathias.chouet's avatar
mathias.chouet committed
`npm run jasmine`


### To compile and test code with karma

mathias.chouet's avatar
mathias.chouet committed
`npm run karma`


### To flag suspicious language usage
David Dorchies's avatar
David Dorchies committed
`npm run lint`
mathias.chouet's avatar
mathias.chouet committed
### To generate typedoc

`npm run doc`


### UML visualisation

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`