$ npm install mongoose --save
$ npm install @types/mongoose --save-dev
$ npm install @types/mongodb --save-dev
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as fs from 'fs'; | |
| import * as http from 'isomorphic-git/http/node/index.cjs'; | |
| import git from 'isomorphic-git'; | |
| import * as uuid from 'uuid'; | |
| const repo = 'https://github.com/fricci/git_test_repo.git'; | |
| const target = '/Users/fczina/Projects/git_sandbox/test' | |
| async function clone() { | |
| await git.clone({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Injectable } from '@angular/core'; | |
| import { ipcRenderer } from 'electron'; | |
| import * as childProcess from 'child_process'; | |
| @Injectable() | |
| export class ElectronService { | |
| ipcRenderer: typeof ipcRenderer; | |
| childProcess: typeof childProcess; |