UNPKG

453 BJavaScriptView Raw
1module.exports = function (shipit) {
2 shipit.initConfig({
3 default: {},
4 staging: {
5 servers: 'myserver.com'
6 }
7 });
8
9 shipit.task('test', function () {
10 return shipit.local('echo "hello"')
11 .then(function (res) {
12 if (res.stdout !== 'hello\n')
13 throw new Error('test not passing');
14 });
15 });
16
17 shipit.task('default', ['test'], function () {
18 console.log("Using default task that depends on 'test'");
19 });
20};