Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.
/ hp-ide-git-extension Public archive

A simple extension providing GIT support for HP Pronq IDE (the actual work is done on server side, which is not Pronq-way)

Notifications You must be signed in to change notification settings

korya/hp-ide-git-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GIT extension for HP Pronq IDE

The extension provides a very simple GIT service allowing: to commit changes, push/pull changes from a remote GIT server.

The extension contradicts the main principle of Pronq IDE no data is stored on server side. This extension stores all the data on server side :D It was written to provide a revision control service required for development of Code Review extension. Now this code can be used as an example of an extension involving development on both server and client sides.

Install

Fast and easy way:

$ cd <IDE source>
$ curl -s https://raw.github.com/korya/hp-ide-git-extension/master/install.sh | sh

Otherwise, use the steps below.

Manual installation

We will use jsontool in order to modify JSON-formatted configuration files, so first make sure it's installed:

$ npm install -g jsontool

Now clone the extension into your tree:

$ cd <IDE source>
$ git submodule add \
    https://github.com/korya/hp-ide-git-extension.git \
    app/extensions/hpsw/git-service/1.00

Install the dependencies:

$ json -I -f package.json -E 'this.dependencies["git-rest-api"]="0.1.1"'
$ npm install git-rest-api@0.1.1

Tell the server to load the extension:

  • register server side code:
$ json -I -f server/file-system/config-files/config.json \
  -E 'this.modules["git-service"]="../app/extensions/hpsw/git-service/1.00/server"'
  • register client side code:
$ json -I -f server/file-system/extensions/manifest.json \
  -E 'this.defaultExtension.push({"id":"git-service","version":1,"author":"hpsw"})'

Details

The extension consists of 2 parts:

  1. back-end running on server side and responsible for:
  • storing actual git repositories
  • providing restful API for working with GIT The back-end uses: korya/node-git-rest-api
  1. front-end running on client side:
  • simple git service with exposing only minimal necessary functionality (which can be easily extended)
  • hooks for project page:
    • init a repo opon project creation
    • add and commit project template
  • Project GIT menu allowing:
    • manage remotes
    • commit project changes

Example

The extension is used in Code Review extension. For example look here.

About

A simple extension providing GIT support for HP Pronq IDE (the actual work is done on server side, which is not Pronq-way)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published