Read the statement by Michael Teeuw here.
`git clone` with `--depth=1`?
-
What do you think about adding
--depth=1
togit clone
in the documentation?Like this:
git clone --depth=1 https://github.com/MichMich/MagicMirror
This 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 install
tonpm install --only=prod
(sam uses this already in his install script), because the devDependencies are really fat. -
Ah, I didn’t know
--single-branch
yet. But yes, that sounds reasonable too.Optimizing both (
git clone
andnpm 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