UNPKG

969 BJavaScriptView Raw
1module.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 // bump: true,
12 // file: 'test/fixtures/_component.json',
13 // add: false,
14 // commit: false,
15 // tag: false,
16 // push: false,
17 // pushTags: false,
18 // npm: false
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};