-
Notifications
You must be signed in to change notification settings - Fork 14
/
Gruntfile.js
46 lines (46 loc) · 1.57 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
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
require('time-grunt')(grunt);
require('load-grunt-config')(grunt, {
data: {
path: {
src: {
scss: 'assets/scss',
js: 'assets/js',
img: 'assets/img'
},
dest: {
css: 'web/assets/css',
js: 'web/assets/js',
img: 'web/assets/img',
},
tmp: 'assets/tmp'
},
files: {
js: {
'<%= path.dest.js %>/front.min.js': [
'node_modules/typed.js/lib/typed.js',
'<%= path.src.js %>/_typed.js',
'<%= path.src.js %>/scrollspy.js',
'<%= path.src.js %>/_parallax.js',
],
'<%= path.dest.js %>/app.min.js': [
'<%= path.src.js %>/_nav.js',
]
},
noJquery: {
'<%= path.dest.js %>/webfontloader.min.js': '<%= path.src.js %>/webfonts.js'
},
copy: [
{
expand: true,
cwd: '<%= path.src.img %>',
src: ['**/*.jpg', '**/*.jpeg', '**/*.png', '**/*.svg'],
dest: '<%= path.dest.img %>',
flatten: true,
}
]
}
}
});
};