1 | #!/usr/bin/env node
|
2 |
|
3 | var coz = require('coz'),
|
4 | path = require('path'),
|
5 | async = require('async'),
|
6 | buds = require('apeman-tmpl-contrib-official/lib/commons');
|
7 |
|
8 | var pkg = require('../package.json');
|
9 |
|
10 |
|
11 | var basedir = path.resolve(__dirname, '..');
|
12 |
|
13 | process.chdir(basedir);
|
14 |
|
15 | async.series([
|
16 | function (callback) {
|
17 | coz.render([
|
18 | 'bin/.*.bud',
|
19 | 'lib/**/.*.bud',
|
20 | 'test/**/.*.bud'
|
21 | ], callback);
|
22 | },
|
23 | function (callback) {
|
24 | buds.render({
|
25 | pkg: pkg,
|
26 | modules: [
|
27 | {name: 'InvocationContext'},
|
28 | {name: 'InvocationLoader'},
|
29 | {name: 'InvocationPerformer'},
|
30 | {name: 'perform'}
|
31 | ],
|
32 | usages: [
|
33 | {
|
34 | title: 'Context',
|
35 | description: 'Context constructor.',
|
36 | example: 'docs/examples/context-example.js'
|
37 | },
|
38 | {
|
39 | title: 'Module loader',
|
40 | description: 'Load a module from given path.',
|
41 | example: 'docs/examples/module-loader-example.js'
|
42 | }
|
43 | ],
|
44 | see: {}
|
45 | }, callback);
|
46 | }
|
47 | ], function (err) {
|
48 | if (err) {
|
49 | console.error(err);
|
50 | }
|
51 | }); |
\ | No newline at end of file |