-
Notifications
You must be signed in to change notification settings - Fork 68
/
Gruntfile.js
30 lines (29 loc) · 759 Bytes
/
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
27
28
29
30
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= pkg.version %> <%= grunt.template.today("dd-mm-yyyy") %> see https://github.com/m90/seeThru for details */\n'
},
dist: {
files: {
'dist/<%= pkg.version %>/seeThru.min.js': 'src/seeThru.js',
'dist/seeThru.min.js': 'src/seeThru.js'
}
}
},
jsonlint: {
configfiles: {
src: ['*.json']
}
},
eslint: {
target: ['.']
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-jsonlint');
grunt.loadNpmTasks('grunt-eslint');
grunt.registerTask('lint', ['eslint', 'jsonlint']);
grunt.registerTask('default', ['lint', 'uglify']);
};