1.0.8 • Published 10 years ago

node-moa v1.0.8

Weekly downloads
4
License
MIT
Repository
-
Last release
10 years ago

node-moa

MOA in node.

使用

npm install node-moa

Simple example:

var moa = require('node-moa');

moa()
    .callService(
        '/service/session',
        'getSessionByMomoid',
        ['320007230'])
    .then((reply) => {
        console.log(reply);
    })
    .catch((err) => {
        console.log(err);
    });

Road Map

v1.2.0

  • 重构日志系统,提供稳定日志和日志系统配置

v1.1.0

  • 单个服务实例中多命令执行
  • 服务查询缓存

Changes

v1.0.0

  • 服务查询
  • 服务调用
  • 部分单元测试

Contribute

Fork这个项目,然后提交一个包含新功能的branch的Pull request.

开发

预装项

npm install -g typescript
npm install -g tsd
cd path/to/node-moa
npm install
tsd install

编译源码

cd path/to/node-moa
tsc

单元测试

cd path/to/node-moa
npm test

代码覆盖率报告:

mocha --require blanket -R html-cov > test/coverage.html

查看报告打开 test/coverage.html

使用 Atom 开发

安装 atom-typescript 获得自动编译源码功能

The End

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago