Skip to content
This repository has been archived by the owner on Mar 2, 2021. It is now read-only.

Implement netlify lm:init #1

Closed
keiko713 opened this issue Dec 10, 2018 · 4 comments
Closed

Implement netlify lm:init #1

keiko713 opened this issue Dec 10, 2018 · 4 comments

Comments

@keiko713
Copy link
Contributor

keiko713 commented Dec 10, 2018

lm:init is the command that everyone who will touch any LFS repo needs to run once per the machine.

It will:

  • make sure that the proper version of LFS is installed
  • make sure that git lfs install command is run
  • download netlify credential helper (https://github.com/netlify/netlify-credential-helper) and install in the path
    • make sure that it supports win/mac/linux
  • set netlify credential helper to git global config (git config --global credential.helper netlify-credential-helper)
  • make sure that setup finished properly
@keiko713
Copy link
Contributor Author

@calavera I started doing this last week but this is pretty difficult for me to do. for example:

  • some steps are much easier/simple to do with shellscript (e.g. download and install Git LFS and/or credential helper)
  • I don't even know how to do things (e.g. download and install credential helper in windows, which folder I should be putting)
  • what is the good step for upgrading the credential helper bin

any suggestions for how to make progress with this?

@keiko713
Copy link
Contributor Author

keiko713 commented Jan 7, 2019

@calavera we can always rethink the architecture and I'm open for the change, but I was thinking to have two commands init and setup for netlify lm.
init for per laptop and setup for per repo (currently you created lm:setup and put the credential helper installation there).

@calavera
Copy link
Contributor

calavera commented Jan 7, 2019

I've implemented both steps in lm:setup already.

@calavera calavera closed this as completed Jan 7, 2019
@keiko713
Copy link
Contributor Author

keiko713 commented Jan 8, 2019

what do you mean by "both" here? which command will be in charge of creating lm addon and/or setting up .lfsconfig file in the repo?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants