Ignore:
Timestamp:
03/14/14 12:36:58 (11 years ago)
Author:
hendrikvanantwerpen
Message:

Enable deployment with Grunt.

Location:
Dev/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk

    • Property svn:ignore
      •  

        old new  
        11build
        2 quod-erat.git
  • Dev/trunk/node_modules/grunt-exec/test/Gruntfile.js

    r484 r516  
    2121        cmd: function(){
    2222          return 'echo "you can use callback, and error, stdout, stderr can be used as arguments"';
    23         },
    24         callback: function(error, stdout, stderr){
    25           var fs = require('fs');
    26           var path = require('path');
    27           var outputPath = path.resolve(process.cwd(), 'test4');
     23        }
     24      , callback: function(error, stdout, stderr){
     25          var fs = require('fs')
     26            , path = require('path')
     27            , outputPath = path.resolve(process.cwd(), 'test4');
     28
    2829          console.log('outputPath : ' + outputPath);
    2930          fs.writeFileSync(outputPath, stdout, 'utf-8');
    3031        }
    3132      }
     33    , test5: {
     34        cmd: 'exit 8'
     35      , exitCodes: 8
     36      }
     37    , test6: {
     38        cmd: 'exit 9'
     39      , exitCodes: [8, 9]
     40      }
     41    , test7: 'echo "you don\'t even need an object" > test7'
    3242    }
    3343  });
  • Dev/trunk/node_modules/grunt-exec/test/test.js

    r484 r516  
    55  , testDir = path.join(process.cwd(), 'test')
    66  , opts = { gruntfile: path.join(testDir, 'Gruntfile.js') }
    7   , tasks = ['exec:test1', 'exec:test2', 'exec:test3:42:love', 'exec:test4'];
     7  , tasks = [
     8      'exec:test1'
     9    , 'exec:test2'
     10    , 'exec:test3:42:love'
     11    , 'exec:test4'
     12    , 'exec:test5'
     13    , 'exec:test6'
     14    , 'exec:test7'
     15    ];
    816
    917grunt.tasks(tasks, opts, function() {
     
    2129        , expected:'you can use callback, and error, stdout, stderr can be used as arguments\n'
    2230        }
     31      , { name: 'test7', expected: 'you don\'t even need an object\n' }
    2332      ]
    2433    , outputPath;
Note: See TracChangeset for help on using the changeset viewer.