You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1010 B

  1. /*
  2. * grunt-bower-task
  3. * https://github.com/yatskevich/grunt-bower-task
  4. *
  5. * Copyright (c) 2012 Ivan Yatskevich
  6. * Licensed under the MIT license.
  7. */
  8. 'use strict';
  9. module.exports = function(grunt) {
  10. grunt.initConfig({
  11. jshint: {
  12. all: [ 'Gruntfile.js', 'tasks/**/*.js', 'test/**/*_test.js' ],
  13. options: {
  14. jshintrc: '.jshintrc'
  15. }
  16. },
  17. bower: {
  18. install: {
  19. options: {
  20. cleanTargetDir: true,
  21. cleanBowerDir: true,
  22. install: true,
  23. copy: true
  24. }
  25. },
  26. cleanup: {
  27. options: {
  28. cleanTargetDir: true,
  29. cleanBowerDir: true,
  30. install: false,
  31. copy: false
  32. }
  33. }
  34. },
  35. nodeunit: {
  36. tests: ['test/*_test.js']
  37. }
  38. });
  39. grunt.loadTasks('tasks');
  40. grunt.loadNpmTasks('grunt-contrib-jshint');
  41. grunt.loadNpmTasks('grunt-contrib-nodeunit');
  42. grunt.registerTask('test', ['jshint', 'nodeunit']);
  43. grunt.registerTask('default', ['test']);
  44. };