This commit is contained in:
2017-08-14 17:50:48 +02:00
commit ce2751e383
16 changed files with 563 additions and 0 deletions

5
ts/index.ts Normal file
View File

@ -0,0 +1,5 @@
import * as plugins from './smartnpm.plugins'
import {}
export let standardExport = 'Hi there! :) This is a exported string'

View File

@ -0,0 +1,7 @@
import * as plugins from './smartnpm.plugins'
export class NpmPackage {
search (searchObject: ISearchObject) {
let response = await plugins.Smartrequest
}
}

View File

@ -0,0 +1,24 @@
import * as plugins from './smartnpm.plugins'
interface ISearchObject {
// metadata
author?: string
maintainer: string
scope?: string
deprecated?: boolean
unstable?: boolean
insecure?: boolean
boostExact: boolean
scoreEffect: number
// Analytics
qualityWeight: number
popularityWeight: number
maintenanceWeight: number
}
export class NpmRegistry {
search (searchObject: ISearchObject) {
let response = await plugins.Smartrequest
}
}

7
ts/smartnpm.plugins.ts Normal file
View File

@ -0,0 +1,7 @@
import 'typings-global'
import * as smartrequest from 'smartrequest'
export {
smartrequest
}