-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathGruntfile.js
40 lines (34 loc) · 901 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
module.exports = function(grunt) {
grunt.initConfig({
concat: {
dist_jquery: {
src: ["src/finnishhyphenator.js", "src/jquery.finnishhyphenator.js"],
dest: "dist/jquery.finnishhyphenator.js"
},
dist_js: {
src: ["src/finnishhyphenator.js"],
dest: "dist/finnishhyphenator.js"
}
},
jshint: {
files: ["src/jquery.finnishhyphenator.js","src/finnishhyphenator.js"],
options: {
jshintrc: ".jshintrc"
}
},
uglify: {
dist_jquery: {
src: ["dist/jquery.finnishhyphenator.js"],
dest: "dist/jquery.finnishhyphenator.min.js",
},
dist_js: {
src: ["src/finnishhyphenator.js"],
dest: "dist/finnishhyphenator.min.js"
},
},
});
grunt.loadNpmTasks("grunt-contrib-concat");
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.registerTask("default", ["jshint", "concat", "uglify"]);
};