test
This commit is contained in:
20
ts/npmci.config.ts
Normal file
20
ts/npmci.config.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import * as q from 'q'
|
||||
|
||||
import * as plugins from './npmci.plugins'
|
||||
import * as paths from './npmci.paths'
|
||||
|
||||
export interface INpmciOptions {
|
||||
globalNpmTools: string[]
|
||||
}
|
||||
|
||||
export let getConfig = () => {
|
||||
console.log('getting config')
|
||||
let done = q.defer<INpmciOptions>()
|
||||
let npmciNpmextra = new plugins.npmextra.Npmextra(paths.cwd)
|
||||
let defaultConfig: INpmciOptions = {
|
||||
globalNpmTools: []
|
||||
}
|
||||
let npmciConfig = npmciNpmextra.dataFor<INpmciOptions>('npmci', defaultConfig)
|
||||
done.resolve(npmciConfig)
|
||||
return done.promise
|
||||
}
|
||||
Reference in New Issue
Block a user