update
This commit is contained in:
5
ts/index.ts
Normal file
5
ts/index.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import * as plugins from './smartnpm.plugins'
|
||||
import {}
|
||||
|
||||
|
||||
export let standardExport = 'Hi there! :) This is a exported string'
|
7
ts/smartnpm.classes.npmpackage.ts
Normal file
7
ts/smartnpm.classes.npmpackage.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import * as plugins from './smartnpm.plugins'
|
||||
|
||||
export class NpmPackage {
|
||||
search (searchObject: ISearchObject) {
|
||||
let response = await plugins.Smartrequest
|
||||
}
|
||||
}
|
24
ts/smartnpm.classes.npmregistry.ts
Normal file
24
ts/smartnpm.classes.npmregistry.ts
Normal 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
7
ts/smartnpm.plugins.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import 'typings-global'
|
||||
|
||||
import * as smartrequest from 'smartrequest'
|
||||
|
||||
export {
|
||||
smartrequest
|
||||
}
|
Reference in New Issue
Block a user