forked from silvestreh/onScreen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgruntfile.js
26 lines (26 loc) · 1.12 KB
/
gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*\n* <%= pkg.name %> <%= pkg.version %> \n* Checks if matched elements are inside the viewport. \n* Built on <%= grunt.template.today() %> \n*\n* Copyright <%= grunt.template.today("yyyy") %> <%= pkg.author %> and contributors, Licensed under the MIT license:\n* http://www.opensource.org/licenses/mit-license.php\n*\n* You can find a list of contributors at:\n* https://github.com/silvestreh/onScreen/graphs/contributors\n*/\n\n',
sourceMap: true,
compress: {
drop_console: true
}
},
js: {
files: {
'jquery.onscreen.min.js': ['jquery.onscreen.js']
}
}
},
watch: {
files: ['jquery.onscreen.js'],
tasks: ['uglify']
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default', ['watch']);
};