hyper63 / alternative-stack

A Remix Stack using hyper cloud as a services tier
https://hyper.io
17 stars 0 forks source link

fix: ignore lockfiles in stack source, but do not when init #5 #6

Closed TillaTheHun0 closed 2 years ago

TillaTheHun0 commented 2 years ago

Closes #5

This PR builds on #4 , in adding code to remix.init that will "un-ignore" the lockfile. This happens in 2 two places:

This is because the stack itself is effectively a library, and doesn't need a lockfile. Additionally, we do not know which package manager the user will decide to use when initializing the stack.

Once the stack is initialized though, it "becomes" an application, and it should commit a lockfile, and then enforce as part of CI, as it is best practice. So by "un-ignoring" the lockfile on initilization, we encourage that best practice for applications.