1 | module.exports = function(grunt) {
|
2 | grunt.initConfig({
|
3 | clean: {
|
4 | test: 'test/fixtures/_component.json'
|
5 | },
|
6 | nodeunit: {
|
7 | tests: 'test/release_test.js'
|
8 | },
|
9 | release: {
|
10 | options: {
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 | }
|
20 | },
|
21 | setup: {
|
22 | test: {
|
23 | src: 'test/fixtures/component.json',
|
24 | dest: 'test/fixtures/_component.json'
|
25 | }
|
26 | }
|
27 | });
|
28 |
|
29 | grunt.loadTasks('tasks');
|
30 | grunt.loadNpmTasks('grunt-contrib-clean');
|
31 | grunt.loadNpmTasks('grunt-contrib-nodeunit');
|
32 |
|
33 | grunt.registerTask('test', [
|
34 | 'clean',
|
35 | 'setup',
|
36 | 'release',
|
37 | 'nodeunit',
|
38 | 'clean'
|
39 | ]);
|
40 |
|
41 | grunt.registerMultiTask('setup', 'Setup fixtures', function(){
|
42 | this.files.forEach(function(f){
|
43 | grunt.file.copy(f.src, f.dest);
|
44 | });
|
45 | });
|
46 | };
|