1 | #!/usr/bin/env node
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | "use strict";
|
8 |
|
9 |
|
10 | var coz = require('coz'),
|
11 | path = require('path'),
|
12 | async = require('async');
|
13 |
|
14 | var pkg = require('../package.json'),
|
15 | tmpl = require("apeman-tmpl-contrib-official/lib/commons");
|
16 |
|
17 | var basedir = path.resolve(__dirname, '..');
|
18 |
|
19 | process.chdir(basedir);
|
20 |
|
21 | async.series([
|
22 | function (callback) {
|
23 | coz.render([
|
24 |
|
25 | "test/**/.*.bud"
|
26 | ], callback);
|
27 | },
|
28 | function (callback) {
|
29 | tmpl.render({
|
30 | pkg: pkg,
|
31 | ignore: [],
|
32 | year: new Date().getFullYear(),
|
33 | modules: [
|
34 | {
|
35 | "name": "runNodeunit"
|
36 | },
|
37 | {
|
38 | "name":"runKarma"
|
39 | }
|
40 | ],
|
41 | usages: [
|
42 | {
|
43 | "title": "runNodeunit",
|
44 | "description": "Release a package.",
|
45 | "example": "docs/examples/run-nodeunit-example.js"
|
46 | },
|
47 | {
|
48 | "title":"runKarma",
|
49 | "description":"Run karma test.",
|
50 | "example":"docs/examples/run-karma-example.js"
|
51 | }
|
52 | ],
|
53 | see: {
|
54 | 'karma': 'http://karma-runner.github.io/',
|
55 | 'nodeunit': 'https://github.com/caolan/nodeunit'
|
56 | }
|
57 | }, callback);
|
58 | }
|
59 | ], function (err) {
|
60 | if (err) {
|
61 | console.error(err);
|
62 | }
|
63 | }); |
\ | No newline at end of file |