UNPKG

grunt-pugpig-issues-xml

Version:
65 lines (54 loc) 1.36 kB
/* * grunt-pugpig-issues-xml * * * Copyright (c) 2014 Daniel Furze * Licensed under the MIT license */ 'use strict'; module.exports = function (grunt) { // Load all npm grunt tasks require('load-grunt-tasks')(grunt); // Project configuration. grunt.initConfig({ jshint: { all: [ 'Gruntfile.js', 'tasks/*.js', '<%= nodeunit.tests %>' ], options: { jshintrc: '.jshintrc', reporter: require('jshint-stylish') } }, // Before generating any new files, remove any previously-created files clean: { tests: ['tmp'] }, // Configuration to be run pugpig_issues_xml: { custom_options: { options: { root: 'content.xml', dest: 'tmp/', fileName: 'issues', partName: 'all', partSrc: '2015.zip' }, src: 'demo/2015.zip' } }, // Unit tests nodeunit: { tests: ['test/*_test.js'] } }); // Actually load this plugin's task(s) grunt.loadTasks('tasks'); // Whenever the 'test' task is run, first clean the 'tmp' dir, then run this // plugin's task(s), then test the result. grunt.registerTask('test', ['clean', 'pugpig_issues_xml', 'nodeunit']); // By default, lint and run all tests. grunt.registerTask('default', ['jshint', 'test']); };