site-deploy/external/skrollr/Gruntfile.js

51 lines
1.1 KiB
JavaScript
Raw Normal View History

module.exports = function(grunt) {
//Configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json') ,
jshint: {
options: {
smarttabs: false,
curly: true,
immed: true,
latedef: true,
noarg: true,
quotmark: 'single',
undef: true,
unused: true,
strict: true,
trailing: true,
globals: {
window: true,
document: true,
navigator: true,
define: true,
module: true
}
},
all: ['src/**/*.js']
},
qunit: {
all: ['test/index.html', 'test/loading.html']
},
uglify: {
options: {
banner: '/*! skrollr <%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd") %>) | Alexander Prinzhorn - https://github.com/Prinzhorn/skrollr | Free to use under terms of MIT license */\n'
},
all: {
files: {
'dist/skrollr.min.js': 'src/skrollr.js'
}
}
}
});
//Dependencies.
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-uglify');
//Tasks.
grunt.registerTask('default', ['jshint', 'qunit', 'uglify']);
grunt.registerTask('travis', ['jshint', 'qunit']);
};