UNPKG

1.51 kBJavaScriptView Raw
1#!/usr/bin/env node
2
3/**
4 * @file Build this project.
5 */
6
7"use strict";
8
9
10var coz = require('coz'),
11 path = require('path'),
12 async = require('async');
13
14var pkg = require('../package.json'),
15 tmpl = require("apeman-tmpl-contrib-official/lib/commons");
16
17var basedir = path.resolve(__dirname, '..');
18
19process.chdir(basedir);
20
21async.series([
22 function (callback) {
23 coz.render([
24 //"lib/**/.*.bud",
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