index.ts 1012 字节
Newer Older
1 2
import Wechaty   from './src/wechaty'
import Config    from './src/config'
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
3

4 5 6
import Message   from './src/message'
import Contact   from './src/contact'
import Room      from './src/room'
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
7

8 9
import Puppet    from './src/puppet'
import PuppetWeb from './src/puppet-web'
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
10

11
import IoClient  from './src/io-client'
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
12

13
import log       from './src/brolog-env'
14

15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
import UtilLib   from './src/util-lib'

// Object.assign(Wechaty, {
//   default: Wechaty
//   , Wechaty
//   , Config

//   , Message
//   , Contact
//   , Room

//   , Puppet
//   , PuppetWeb

//   , IoClient
//   , UtilLib

//   , version: require('./package.json').version
//   , log // for convenionce use npmlog with environment variable LEVEL

// })

// module.exports = Wechaty

const version = require('./package.json').version

export default Wechaty
export {
  Config
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
44

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
45
  , Message
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
46 47 48 49 50
  , Contact
  , Room

  , Puppet
  , PuppetWeb
51

Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
52
  , IoClient
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
53
  , UtilLib
54
  , Wechaty
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
55

56
  , version
Huan (李卓桓)'s avatar
Huan (李卓桓) 已提交
57
  , log // for convenionce use npmlog with environment variable LEVEL
58
}