MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    UNSOLVED `git clone` with `--depth=1`?

    Feature Requests
    3
    6
    253
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • KristjanESPERANTO
      KristjanESPERANTO last edited by

      What do you think about adding --depth=1 to git 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?

      S karsten13 2 Replies Last reply Reply Quote 0
      • S
        sdetweil @KristjanESPERANTO last edited by

        @kristjanesperanto if you use my install script it does that

        Sam

        Create a working config
        How to add modules

        KristjanESPERANTO 1 Reply Last reply Reply Quote 1
        • KristjanESPERANTO
          KristjanESPERANTO @sdetweil last edited by

          That’s interesting, but I’m talking about the official documentation here 🙂

          1 Reply Last reply Reply Quote 0
          • karsten13
            karsten13 @KristjanESPERANTO last edited by

            @kristjanesperanto

            single branch could be another option like here.

            But we should update the doc from npm install to npm install --only=prod (sam uses this already in his install script), because the devDependencies are really fat.

            KristjanESPERANTO 1 Reply Last reply Reply Quote 1
            • KristjanESPERANTO
              KristjanESPERANTO @karsten13 last edited by

              Ah, I didn’t know --single-branch yet. But yes, that sounds reasonable too.

              Optimizing both (git clone and npm 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.

              S 1 Reply Last reply Reply Quote 0
              • S
                sdetweil @KristjanESPERANTO last edited by

                @kristjanesperanto one side effect, getting to the develop branch requires a little extra work

                see
                https://forum.magicmirror.builders/topic/14327/testing-new-fixes-or-solving-current-problems-with-next-release-code

                Sam

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy