-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.js
85 lines (81 loc) · 3.33 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/* 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: {
"jquery": {
src: [ "node_modules/jquery/dist/jquery.js" ],
dest: "lib/jquery/jquery.js"
},
"syntax": {
src: [ "node_modules/syntax/lib/syntax.browser.js" ],
dest: "lib/syntax/syntax.js"
},
"swiper": {
src: [ "node_modules/swiper/dist/js/swiper.js" ],
dest: "lib/swiper/swiper.js"
},
"swiper-css": {
src: [ "node_modules/swiper/dist/css/swiper.css" ],
dest: "lib/swiper/swiper.css"
},
"normalize.css": {
src: [ "node_modules/normalize.css/normalize.css" ],
dest: "lib/normalize/normalize.css"
},
"font-awesome-css": {
src: [ "node_modules/font-awesome/css/font-awesome.css" ],
dest: "lib/font-awesome/font-awesome.css",
options: {
process: function (content /*, srcpath */) {
return content.replace(/\.\.\/fonts\//g, "");
}
}
},
"font-awesome-fonts": {
files: [{
expand: true, flatten: false, cwd: "node_modules/font-awesome/fonts",
src: "fontawesome-webfont.*",
dest: "lib/font-awesome/"
}]
},
"gridless": {
src: [ "node_modules/gridless/predef/eg12.css" ],
dest: "lib/gridless/eg12.css"
},
"combinumerals": {
files: [
{ expand: true, flatten: false, cwd: "node_modules/combinumerals",
src: "CombiNumeralsLtd.*", dest: "lib/combinumerals/" }
]
},
"bootstrap": {
files: [
{ expand: true, flatten: true, cwd: "node_modules/bootstrap/dist",
src: "js/bootstrap.js", dest: "lib/bootstrap/" },
{ expand: true, flatten: true, cwd: "node_modules/bootstrap/dist",
src: "css/bootstrap.css", dest: "lib/bootstrap/" },
{ expand: true, flatten: true, cwd: "node_modules/bootstrap/dist",
src: "css/bootstrap-theme.css", dest: "lib/bootstrap/" }
]
},
"typopro": {
files: [
{ expand: true, flatten: false, cwd: "node_modules/typopro-web/web",
src: "TypoPRO-OpenSans/**", dest: "lib/typopro/" },
{ expand: true, flatten: false, cwd: "node_modules/typopro-web/web",
src: "TypoPRO-DejaVu/**", dest: "lib/typopro/" },
{ expand: true, flatten: false, cwd: "node_modules/typopro-web/web",
src: "TypoPRO-Journal/**", dest: "lib/typopro/" }
]
}
},
clean: {
clean: [ "lib" ],
distclean: [ "node_modules" ]
}
});
grunt.registerTask("default", [ "copy" ]);
};