#20 Update strategy

Açık
jcolomb tarafından 3 yıl önce kere açıldı · 0 yorum
julien colomb 3 yıl önce olarak yorumlandı

A simple solution:

  • add a .tonic submodule in tonic template repo, content will always link to one specific repo (no copy)
  • add the scripts in that submodule
  • in the template add a sync script that would call that one:

    #!/usr/bin/env bash
    #
    # Upload changes from inside repository using GIN CLI
    # Works with submodules.
    # Assumes gin init was performed or the repository was downloaded via gin get
    
    
    
    
    
    
    
    loc=$(dirname $0)
    projectdir=$(git -C ${loc} rev-parse --show-toplevel)
    
    pushd ${loc} > /dev/null
    
    source ./.tonic/sync
    
A simple solution: - add a .tonic submodule in tonic template repo, content will always link to one specific repo (no copy) - add the scripts in that submodule - in the template add a sync script that would call that one: ``` #!/usr/bin/env bash # # Upload changes from inside repository using GIN CLI # Works with submodules. # Assumes gin init was performed or the repository was downloaded via gin get loc=$(dirname $0) projectdir=$(git -C ${loc} rev-parse --show-toplevel) pushd ${loc} > /dev/null source ./.tonic/sync ```
Giriş yap bu konuşmaya katılmak için.
Kilometre Taşı Yok
Atanan Kişi Yok
1 Katılımcı
Yükleniyor...
İptal
Kaydet
Henüz bir içerik yok.