forked from angular-ui/ui-grid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcopy.js
98 lines (98 loc) · 2.09 KB
/
copy.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
var util = require('../lib/grunt/utils.js');
var semver = require('semver');
var currentTag = semver.clean( util.getCurrentTag() );
module.exports = function ( grunt ) {
return {
site: {
options: {
processContent: function (content, srcpath) {
return grunt.template.process(content);
}
},
files: [
{
expand: true,
cwd: 'misc/site/',
src: '**',
dest: '<%= dist %>'
}
]
},
font_dist: {
files: [
{
expand: true,
cwd: 'src/font',
src: '**/*.eot',
dest: '<%= dist %>/release/'
},
{
expand: true,
cwd: 'src/font',
src: '**/*.svg',
dest: '<%= dist %>/release/'
},
{
expand: true,
cwd: 'src/font',
src: '**/*.ttf',
dest: '<%= dist %>/release/'
},
{
expand: true,
cwd: 'src/font',
src: '**/*.woff',
dest: '<%= dist %>/release/'
}
]
},
less_customizer: {
files: [
{
expand: true,
cwd: 'src/less',
src: '**/*.less',
dest: '<%= dist %>/less'
},
{
expand: true,
cwd: 'src/features',
src: '**/*.less',
dest: '<%= dist %>/less'
},
{
expand: true,
cwd: 'node_modules/bootstrap',
src: '**/*.less',
dest: '<%= dist %>/bootstrap'
}
]
},
less_dist: {
files: [
{
expand: true,
cwd: 'src/less',
src: '**/*.less',
dest: '<%= dist %>/release/less'
},
{
expand: true,
cwd: 'src/features',
src: '**/*.less',
dest: '<%= dist %>/release/less'
}
]
},
less_cut_release: {
files: [
{
expand: true,
cwd: '<%= dist %>/release/less',
src: '**/*.less',
dest: '<%= dist %>/release/' + currentTag + '/less'
}
]
}
};
};