source: Dev/trunk/node_modules/grunt-zip/test/Gruntfile.js @ 484

Last change on this file since 484 was 484, checked in by hendrikvanantwerpen, 11 years ago

Commit node_modules, to make checkouts and builds more deterministic.

File size: 704 bytes
Line 
1module.exports = function (grunt) {
2  // Load in legacy config
3  require('./grunt')(grunt);
4
5  // Add in 0.4 specific tests
6  var _ = grunt.util._;
7  var zipConfig = grunt.config.get('zip');
8  grunt.config.set('zip', _.extend(zipConfig, {
9    'actual/template_zip/<%= pkg.name %>.zip': ['test_files/file.js']
10  }));
11
12  // Configure nodeunit as test
13  var testConfig = grunt.config.get('test');
14  grunt.config.set('nodeunit', _.extend(testConfig, {
15    '0.4': '0.4_test.js'
16  }));
17
18  // Load in nodeunit
19  process.chdir('..');
20  grunt.loadNpmTasks('grunt-contrib-nodeunit');
21  process.chdir(__dirname);
22
23  // Override default task
24  grunt.registerTask('default', ['clean', 'zip', 'unzip', 'nodeunit']);
25};
Note: See TracBrowser for help on using the repository browser.