rokucommunity / ropm

A package manager for the Roku platform.
MIT License
34 stars 6 forks source link

Add copy command that skips npm install #11

Closed TwitchBronBron closed 3 years ago

TwitchBronBron commented 3 years ago

When doing local development of a ropm package (i.e. ropm install ../some-local-package), anytime you make a chance to that package, you need to run ropm install again to copy the files to the proper roku_modules folders. The downside of ropm install is that it will attempt to download any missing dependencies from the registry, which takes some time even when nothing has changed.

This PR adds a new command, ropm copy, which skips the registry check. The general workflow is as follows:

  1. Perform a full install: ropm install ../some-local-package
  2. Anytime you make changes to ../some-local-package, run ropm copy, which will be faster than ropm install.