yalc publish for OHIF Viewer
Hello,
I'm using cornerstoneTools with OHIFViewer to add a segmentation tool and the possibility to save the ROI formed. As I did with ohif-core to add modifications, I forked and clone this repo and I went into it to run :
- yarn install
- yalc publish
I have no problem with the install, but for the publishment, instead of just grabbing the file and put them in a local folder, it runs a lot of test and I get errors as you can see on the picture.
Do you have any idea of what is happening, and why that won't work?
Many thanks in advance
To maintain a consistent look and feel, we enforce eslint and prettier rules (as warnings or errors). These boil down to things you would normally consider preferences:
- No
console.log()use - Wrap code longer than 80 characters per line
- Prefer single quotes over double quotes for strings
- etc.
These checks run when we try to publish as a last catch to make sure we've caught as much as we reasonably can before cutting a new version and merging the code into the master branch.
You should be able to run npm run lint to autofix issues that the tooling is capable of automatically fixing on your behalf. Other issues, you will need to track down and change yourself. Most rules, like valid-jsdoc can be found by googling: eslint valid-jsdoc if you need help understanding how to fix manually.
Only rules that result in an error need to be addressed before you can publish.
FWIW, there is more we can do to automate this on behalf of our developer contributors. Improving the tooling for this project, and other cornerstonejs projects are on our wish list.