-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
41 lines (38 loc) · 861 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
31
32
33
34
35
36
37
38
39
40
41
"use strict";
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
options: {
curly: true,
eqeqeq: true,
eqnull: true,
globalstrict: true,
node: true
},
lib: {
files: {
src: ['Gruntfile.js', 'index.js', 'package.json', 'test/*.js']
}
}
},
browserify: {
options: {
alias: './index.js:findByPath'
},
'dist/findByPath.js': ['index.js']
},
uglify: {
browser: {
files: {
'dist/findByPath.min.js': ['dist/findByPath.js']
}
}
}
});
// npm tasks
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-contrib-uglify');
// Default task.
grunt.registerTask('default', ['jshint', 'browserify', 'uglify']);
};