3 Matching Annotations
  1. Jul 2021
    1. Add this to ~/.direnvrc:

      This is almost the same as used by

      https://github.com/apollographql/apollo-server/blob/main/.envrc

      except they (like I) prefer to just put it in local .envrc instead of requesting all developers put something in a file outside of the project root.

      Also, the version at https://github.com/apollographql/apollo-server/blob/main/.envrc is slightly better.

    1. watch_file .nvmrc local NVM_PATH="$HOME/.nvm/nvm.sh" if ! [ -f "$NVM_PATH" ]; then echo "Installing NVM" >&2 curl -o- https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash fi . "${NVM_PATH}" # `nvm use` will set up the environment to use some version matching what we have # in .nvmrc without talking to the network, assuming that there is any matching # version already downloaded. If there isn't (eg, you're just getting started, or # we just did a major version upgrade) then it will fail and `nvm install` will # download a matching version. nvm use || nvm install # Let you run npm-installed binaries without npx. layout node