-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
47 lines (45 loc) · 1.7 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* global module: true */
module.exports = function (grunt) {
grunt.loadNpmTasks("grunt-contrib-clean")
grunt.loadNpmTasks("grunt-contrib-copy")
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
copy: {
"normalize": {
src: [ "node_modules/normalize.css/normalize.css" ],
dest: "lib/normalize/normalize.css"
},
"jquery": {
src: [ "node_modules/jquery/dist/jquery.js" ],
dest: "lib/jquery/jquery.js"
},
"typopro": {
files: [
{ expand: true, flatten: false, cwd: "node_modules/typopro-web/web",
src: "TypoPRO-Overlock/**", dest: "lib/typopro/" }
]
},
"font-awesome-css": {
src: [ "node_modules/@fortawesome/fontawesome-free/css/all.css" ],
dest: "lib/fontawesome/fontawesome.css",
options: {
process: function (content, srcpath) {
return content.replace(/\.\.\/webfonts\/fa-/g, "fontawesome-");
}
}
},
"font-awesome-fonts": {
files: [{
expand: true, flatten: false, cwd: "node_modules/@fortawesome/fontawesome-free/webfonts",
src: "fa-*", dest: "lib/fontawesome/",
rename: function (src, dest) { return src + dest.replace(/fa-/, "fontawesome-"); }
}]
},
},
clean: {
clean: [ "lib" ],
distclean: [ "node_modules" ]
}
})
grunt.registerTask("default", [ "copy" ])
}