index.ts 1.1 KB
Newer Older
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
1 2 3 4
import {
    Config
  , Sayable
}                     from './src/config'
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
5 6 7 8 9 10 11 12 13
import Contact        from './src/contact'
import FriendRequest  from './src/friend-request'
import IoClient       from './src/io-client'
import Message        from './src/message'
import Puppet         from './src/puppet'
import PuppetWeb      from './src/puppet-web/'
import Room           from './src/room'
import UtilLib        from './src/util-lib'
import Wechaty        from './src/wechaty'
14

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
15
import log            from './src/brolog-env'
16

17
const VERSION = require('./package.json').version
18 19 20

export default Wechaty
export {
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
21
    Config
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
22
  , Contact
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
23 24 25
  , FriendRequest
  , IoClient
  , Message
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
26 27
  , Puppet
  , PuppetWeb
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
28
  , Room
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
29
  , Sayable
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
30
  , UtilLib
31
  , Wechaty
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
32
  , log // for convenionce use npmlog with environment variable LEVEL
33
  , VERSION
34
}
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51

Object.assign(Wechaty, {
    Config
  , Contact
  , FriendRequest
  , IoClient
  , Message
  , Puppet
  , PuppetWeb
  , Room
  , UtilLib
  , Wechaty
  , default: Wechaty
  , log // for convenionce use npmlog with environment variable LEVEL
  , VERSION
})
exports = Wechaty