UNPKG

556 BJavaScriptView Raw
1/** Example of Apemanfile.js */
2
3'use strict'
4
5module.exports = {
6 $cwd: __dirname,
7 $pkg: require('./package.json'),
8 $tmpls: { /* ... */ },
9 // Define a task
10 $tasks: {
11 // Use apeman task package
12 'my-task01': require('apeman-task-mkdirp')([
13 'ci', 'lib', 'test'
14 ]),
15 // Define a custom task
16 'my-task-02': function (context, callback) {
17 /* ... */
18 callback(null)
19 },
20 // Combine other tasks
21 'my-task-03': [
22 'my-task01',
23 'my-task02'
24 ]
25 },
26 $apps: { /* ... */ },
27 $wtchs: { /* ... */ }
28}