obs-tablet-remote
obs-tablet-remote copied to clipboard
Publish on NPM
It would be really nice to also publish this package on npm. I thought a bit about how to make the npm publication most useful.
- Exclude the source, include the build result.
- People can install the package and host the contents using any webserver they want.
- Add instructions on how to run the package via http-server. If you need help with any of this, I can help.
I don't think npm is really made for this since npm is more about libraries and other code that can be reused in other projects while this is just an application that can be served (as a static site, even with just apache/nginx). Maybe having builds output a version that can be downloaded, either from build artifacts (if they're publicly available?) or I guess separate release (kinda bad at making defined versions here since practically whatever is current repo state is latest version)
NPM is made for many things. Publishing full applications is one of them. When you're installing a package you can also choose to install it globally. Usually these would be tools that you can run via the CLI.
I think I would do something like this:
- Move all current dependencies to devDependencies (since they are only needed for building).
- Add http-server as a dependency.
- Add
obs-tablet-remote
orobs-tablet-remote-server
underbin
ofpackage.json
, with a command that callshttp-server
.
That way people can do:
-
npm install -g obs-tablet-remote
-
obs-tablet-remote --port 8080