Skip to content

Elegant bindings for working with Git in your Node applications

License

Notifications You must be signed in to change notification settings

MarshallOfSound/dugite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-kitchen-sink

Incorporate Git into your Electron application

This is a skunkworks project to make using Git in your Electron application.

To get started: npm install git-kitchen-sink --save

And then reference it in your application:

import { GitProcess, GitError, GitErrorCode } from 'git-kitchen-sink'

const pathToRepository = 'C:/path/to/git/repository/'

GitProcess.execWithOutput([ '--version' ], pathToRepository)
  .then(output => {
    // TODO: read version
  })
  .catch(error => {
    // TODO: better error handling
  })

Current features:

  • package Git within your application
  • make it easy to execute Git commands
  • macOS and Window support

Potential Roadmap:

  • an API for common Git operations
  • Linux support
  • handle authentication and environment setup
  • ???

Contributing

After cloning down this repository, bootstrap your environment:

# on Windows
./script/bootstrap.sh
# on macOS
./script/bootstrap

And then you can create the package yourself:

npm pack

About

Elegant bindings for working with Git in your Node applications

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 87.9%
  • JavaScript 12.0%
  • Other 0.1%