Read the statement by Michael Teeuw here.
`git clone` with `--depth=1`?
-
What do you think about adding
--depth=1togit clonein the documentation?Like this:
git clone --depth=1 https://github.com/MichMich/MagicMirrorThis would have the positive effect that users would only have to download 437 KiB instead of 19 MiB. The whole git history is not relevant for normal users, is it?
-
@kristjanesperanto if you use my install script it does that
-
That’s interesting, but I’m talking about the official documentation here :-)
-
single branch could be another option like here.
But we should update the doc from
npm installtonpm install --only=prod(sam uses this already in his install script), because the devDependencies are really fat. -
Ah, I didn’t know
--single-branchyet. But yes, that sounds reasonable too.Optimizing both (
git cloneandnpm install) would speed up the setup process, especially on slow machines. Since a simple user just copies the commands from the documentation, these changes wouldn’t complicate the process any further. -
@kristjanesperanto one side effect, getting to the develop branch requires a little extra work
