Skip to content

yobil/taiga-contrib-gogs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Taiga contrib gogs

Kaleidos Project Managed with Taiga.io

The Taiga plugin for gogs integration.

Installation

Production env

Taiga Back

In your Taiga back python virtualenv install the pip package taiga-contrib-gogs with:

  pip install taiga-contrib-gogs

Modify in taiga-back your settings/local.py and include the line:

  INSTALLED_APPS += ["taiga_contrib_gogs"]
  PROJECT_MODULES_CONFIGURATORS["gogs"] = "taiga_contrib_gogs.services.get_or_generate_config"

The run the migrations to generate the new need table:

  python manage.py migrate taiga_contrib_gogs

Taiga Front

Download in your dist/plugins/ directory of Taiga front the taiga-contrib-gogs compiled code (you need subversion in your system):

  cd dist/
  mkdir -p plugins
  cd plugins
  svn export "https://github.com/taigaio/taiga-contrib-gogs/tags/$(pip show taiga-contrib-gogs | awk '/^Version: /{print $2}')/front/dist" "gogs"

Include in 'dist/conf.json' in the 'contribPlugins' list the value "/plugins/gogs/gogs.json":

...
    "contribPlugins": [
        (...)
        "/plugins/gogs/gogs.json"
    ]
...

Dev env

Taiga Back

Clone the repo and

  cd taiga-contrib-gogs/back
  workon taiga
  pip install -e .

Modify in taiga-back your settings/local.py and include the line:

  INSTALLED_APPS += ["taiga_contrib_gogs"]
  PROJECT_MODULES_CONFIGURATORS["gogs"] = "taiga_contrib_gogs.services.get_or_generate_config"

The run the migrations to generate the new need table:

  python manage.py migrate taiga_contrib_gogs

Taiga Front

After clone the repo link dist in taiga-front plugins directory:

  cd taiga-front/dist
  mkdir -p plugins
  cd plugins
  ln -s ../../../taiga-contrib-gogs/dist gogs

Include in 'dist/conf.json' in the 'contribPlugins' list the value "/plugins/gogs/gogs.json":

...
    "contribPlugins": [
        (...)
        "/plugins/gogs/gogs.json"
    ]
...

In the plugin source dir taiga-contrib-gogs/front run

npm install

and use:

  • gulp to regenerate the source and watch for changes.
  • gulp build to only regenerate the source.

About

The Taiga plugin for gogs (https://github.com/gogits/gogs) integration.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 64.9%
  • CoffeeScript 18.9%
  • HTML 9.3%
  • JavaScript 6.9%