Skip to content

Commit

Permalink
Merge pull request #84 from desktop/some-more-tidy-up
Browse files Browse the repository at this point in the history
a bit more tidy up
  • Loading branch information
shiftkey authored Apr 11, 2017
2 parents 3f46d53 + 4409d67 commit 0706647
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 9 deletions.
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Place your settings in this file to overwrite default and user settings.
{
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"build": true
}
}
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# Dugite
# Dugite - JS bindings for Git

This project provides Typescript bindings for Node applications to interact with Git repositories, using the same command line interface that core Git offers.
This project provides bindings for Node applications to interact with Git repositories, using the same command line interface that core Git offers.

The source is in TypeScript, but can be consumed by any JavaScript application.

### Getting Started

Add it to your project:

```
> npm install dugite --save
```

And then reference it in your application:
Then reference it in your application:

```js
import { GitProcess, GitError, IGitResult } from 'dugite'
Expand Down
3 changes: 0 additions & 3 deletions script/versions.ts

This file was deleted.

2 changes: 1 addition & 1 deletion test/fast/git-process-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as crypto from 'crypto'
import { GitProcess, GitError, RepositoryDoesNotExistErrorCode } from '../../lib'
import { initialize, verify } from '../helpers'

import { gitVersion } from '../../script/versions'
import { gitVersion } from '../helpers'

const temp = require('temp').track()

Expand Down
2 changes: 1 addition & 1 deletion test/fast/lfs-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as chai from 'chai'
const expect = chai.expect

import { GitProcess } from '../../lib'
import { gitLfsVersion } from '../../script/versions'
import { gitLfsVersion } from '../helpers'

const temp = require('temp').track()

Expand Down
6 changes: 5 additions & 1 deletion test/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import { GitProcess, IGitResult } from '../lib'

// NOTE: bump these versions to the latest stable releases
export const gitVersion = '2.12.2'
export const gitLfsVersion = '2.0.2'

const temp = require('temp').track()

export async function initialize(repositoryName: string) : Promise<string> {
export async function initialize(repositoryName: string): Promise<string> {
const testRepoPath = temp.mkdirSync(`desktop-git-test-${repositoryName}`)
await GitProcess.exec([ 'init' ], testRepoPath)
await GitProcess.exec([ 'config', 'user.email', '"some.user@email.com"' ], testRepoPath)
Expand Down

0 comments on commit 0706647

Please sign in to comment.