1 |
|
2 |
|
3 | /**
|
4 | * Example client
|
5 | */
|
6 |
|
7 |
|
8 | const co = require('co')
|
9 | const apemanApiClient = require('apeman-api-client')
|
10 |
|
11 | co(function * () {
|
12 | // Setup an client
|
13 | let api = yield apemanApiClient('/api')
|
14 |
|
15 | // Connect to a module
|
16 | let closurecompiler = yield api.connect('closurecompiler')
|
17 | let pong = yield closurecompiler.ping()
|
18 | /* ... */
|
19 |
|
20 | yield closurecompiler.compile('ui/external.js', 'ui/external.cc.js', {})
|
21 | })
|
22 |
|