forked from MrSwitch/hello.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
42 lines (39 loc) · 937 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
42
module.exports = function config(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
shunt: {
build: {
"dist/hello.js": [
"src/hello.polyfill.js",
"src/hello.js",
"src/hello.amd.js",
"src/hello.commonjs.js"
],
"dist/hello.all.js": [
"src/hello.polyfill.js",
"src/hello.js",
"src/modules/facebook.js",
"src/modules/google.js",
"src/modules/instagram.js",
"src/modules/linkedin.js",
"src/modules/twitter.js",
"src/modules/youtube.js",
"src/modules/gAnalytics.js",
"src/hello.amd.js",
"src/hello.commonjs.js"
]
}
},
uglify: {
minify: {
files: {
"dist/hello.min.js": ["dist/hello.js"],
"dist/hello.all.min.js": ["dist/hello.all.js"]
}
}
}
});
grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks("shunt");
grunt.registerTask("default", ["shunt:build", "uglify:minify"]);
};