Skip to content

Commit 369d53a

Browse files
committed
Move api to @oledid/sync-github-forks
1 parent 12fc8cc commit 369d53a

10 files changed

Lines changed: 19 additions & 470 deletions

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,5 +396,10 @@ sync-github-forks oledid-forks C:/temp/sync-github-forks (secret-github-api-key)
396396
```
397397

398398

399+
## Related:
400+
* [sync-github-forks](https://github.com/oledid/sync-github-forks) - API for this module
401+
* [@oledid-forks](https://github.com/oledid-forks) - An organization that uses this to sync its forks every day
402+
403+
399404
## License:
400405
[MIT](LICENSE)

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
{
22
"name": "sync-github-forks-cli",
3-
"version": "0.1.12",
4-
"description": "Keeps github forks up to date using node, the github api and git",
5-
"main": "dist/index.js",
3+
"version": "0.1.13",
4+
"description": "Keep github forks up to date using node, the github api and git",
5+
"main": "dist/cli.js",
66
"bin": {
77
"sync-github-forks": "dist/cli.js"
88
},
99
"scripts": {
10-
"start": "tsc && node dist/cli.js",
1110
"test": "npm run lint",
1211
"lint": "tslint -c ./tslint.json src/**"
1312
},
@@ -42,6 +41,7 @@
4241
},
4342
"dependencies": {
4443
"bluebird": "^3.4.7",
45-
"execa": "^0.6.0"
44+
"execa": "^0.6.0",
45+
"sync-github-forks": "^0.1.13"
4646
}
4747
}

src/application.ts

Lines changed: 0 additions & 163 deletions
This file was deleted.

src/cli.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#!/usr/bin/env node
22

3-
import { Application } from "./application";
4-
import { CliOptions, Options } from "./options";
5-
import { Logger } from "./logger";
3+
import { Application, Options, Logger } from "sync-github-forks";
4+
import { CliOptions } from "./cliOptions";
65

76
const options: Options = new CliOptions();
87
const logger = new Logger(options);

src/cliOptions.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { Options } from "sync-github-forks";
2+
3+
export class CliOptions extends Options {
4+
constructor() {
5+
super(process.argv[2], process.argv[3], process.argv[4]);
6+
}
7+
}

src/gitHubService.ts

Lines changed: 0 additions & 76 deletions
This file was deleted.

0 commit comments

Comments
 (0)