Gruntfile.js 825 B

12345678910111213141516171819202122232425262728293031
  1. module.exports = function(grunt) {
  2. // Project configuration.
  3. grunt.initConfig({
  4. pkg: grunt.file.readJSON('package.json'),
  5. uglify: {
  6. options: {
  7. banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> - v<%= pkg.version %> */\n'
  8. },
  9. build: {
  10. src: 'fingerprint.js',
  11. dest: 'build/fingerprint.min.js'
  12. }
  13. },
  14. jshint: {
  15. file: ['Gruntfile.js', 'fingerprint.js', 'specs/**/*_spec.js'],
  16. options: {
  17. eqnull: true,
  18. '-W086': true //W086: Expected a 'break' statement before 'case'.
  19. }
  20. }
  21. });
  22. // Load the plugin that provides the "uglify" task.
  23. grunt.loadNpmTasks('grunt-contrib-uglify');
  24. grunt.loadNpmTasks('grunt-contrib-jshint');
  25. // Default task(s).
  26. grunt.registerTask('default', ['jshint', 'uglify']);
  27. };