initial
This commit is contained in:
25
ts/index.ts
Normal file
25
ts/index.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import * as plugins from './smartupdate.plugins'
|
||||
|
||||
interface ICacheStatus {
|
||||
lastCheck
|
||||
}
|
||||
|
||||
class SmartUpdate {
|
||||
kvStore = new plugins.npmextra.KeyValueStore('custom', 'global:smartupdate')
|
||||
|
||||
async checkCacheStatus () {
|
||||
let result: ICacheStatus = await this.kvStore.read(npmname)
|
||||
if(result && result) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
async check (npmname: string) {
|
||||
}
|
||||
}
|
||||
let standardInstance = new SmartUpdate()
|
||||
|
||||
export let check = standardInstance.check
|
||||
|
||||
|
||||
export let standardExport = 'Hi there! :) This is a exported string'
|
9
ts/smartupdate.plugins.ts
Normal file
9
ts/smartupdate.plugins.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import 'typings-global'
|
||||
|
||||
import * as npmextra from 'npmextra'
|
||||
import * as smartnpm from 'smartnpm'
|
||||
|
||||
export {
|
||||
npmextra,
|
||||
smartnpm
|
||||
}
|
Reference in New Issue
Block a user