device-detect
Version:
JavaScript module to check if user agent to return the device and browser.
48 lines • 1.04 kB
JavaScript
module.exports = function(grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
all: ['**/*.js'],
options: {
reporter: require('jshint-stylish'),
curly: true,
eqeqeq: true,
eqnull: false,
browser: true,
indent: 2,
quotmark: 'single',
unused: false,
ignores: ['node_modules/**/*.js'],
globals: {
jQuery: true
},
},
},
jsonlint: {
sample: {
src: [ '**/*.json' ]
}
},
watch: {
scripts: {
files: ['**/*.js'],
tasks: ['jshint'],
options: {
livereload: true
}
},
json: {
files: ['**/*.json'],
tasks: ['newer:jsonlint'],
options: {
spawn: false
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-jsonlint');
grunt.registerTask('default',['watch']);
};