purescript-contrib / governance

Guidelines and resources for the PureScript Contributors organization
15 stars 3 forks source link

Allow full installation via the Nix shell #7

Closed thomashoneyman closed 4 years ago

thomashoneyman commented 4 years ago

Closes #4 by encapsulating installation into the Nix shell, which also includes runtime dependencies like dhall-json. You can now build and install the contrib-updater tool via nix-shell.

demo

It's still callable via contrib-updater, but the tool's name is displayed as 'index.js' in the help menus. I didn't want to spend too much time trying to make that nice, and this should allow folks to use the tool right away. Plus, subsequent updates to the tool can be matched with npm run build and your local version will be updated without effort as it's just a symlink to ./bin/index.js.

cc: @JordanMartinez

JordanMartinez commented 4 years ago

Cool!