1 | #!/usr/bin/env node
|
2 |
|
3 | var coz = require('coz'),
|
4 | path = require('path'),
|
5 | async = require('async');
|
6 |
|
7 | var pkg = require('../package.json'),
|
8 | tmpl = require("apeman-tmpl-contrib-official/lib/commons");
|
9 |
|
10 | var basedir = path.resolve(__dirname, '..');
|
11 |
|
12 | process.chdir(basedir);
|
13 |
|
14 | async.series([
|
15 | function (callback) {
|
16 | coz.render([
|
17 |
|
18 | "test/**/.*.bud"
|
19 | ], callback);
|
20 | },
|
21 | function (callback) {
|
22 | tmpl.render({
|
23 | pkg: pkg,
|
24 | ignore: [],
|
25 | year: new Date().getFullYear(),
|
26 | modules: [
|
27 | {
|
28 | "name": "release"
|
29 | }
|
30 | ],
|
31 | usages: [
|
32 | {
|
33 | "title": "release",
|
34 | "description": "Release a package.",
|
35 | "example": "docs/examples/release-example.js"
|
36 | }
|
37 | ],
|
38 | see: {
|
39 | "colorprint": "https://www.npmjs.com/package/colorprint"
|
40 | }
|
41 | }, callback);
|
42 | }
|
43 | ], function (err) {
|
44 | if (err) {
|
45 | console.error(err);
|
46 | }
|
47 | }); |
\ | No newline at end of file |