Monday, 17 September 2018

Can NPM be used to manage generated files?

I have been working on a program that generates JS files from Java files to facilitate client-server communication with websockets. I attempted to bundle this code as a module and place it into the node_modules sub-directory, but every time a new package is installed it removes the generated code. I could place it in it's own directory and npm install from there, but that feels like needless bloat. Is there a way to install into node_modules directory non-repository / non-local code?

Submitted September 17, 2018 at 09:51PM by Thaerious

No comments:

Post a Comment