add git module and kvStore

This commit is contained in:
2017-08-28 17:11:47 +02:00
parent 10cc7cf581
commit 5eb07f1ad7
12 changed files with 92 additions and 2 deletions

View File

@@ -3,10 +3,17 @@ import * as q from 'q'
import * as plugins from './npmci.plugins'
import * as paths from './npmci.paths'
import { repo } from './npmci.env'
import { KeyValueStore } from 'npmextra'
export interface INpmciOptions {
globalNpmTools: string[]
}
// instantiate a kvStorage for the current directory
export let kvStorage = new KeyValueStore('custom', repo.user + repo.repo)
export let getConfig = async (): Promise<INpmciOptions> => {
let npmciNpmextra = new plugins.npmextra.Npmextra(paths.cwd)
let defaultConfig: INpmciOptions = {