-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
57 lines (52 loc) · 1.72 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
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
copy: {
main: {
expand: true,
cwd: 'assets/fonts/',
src: ['**'],
dest: 'public/fonts',
filter: 'isFile'
},
},
concat: {
"options": { "separator": ";" },
"build": {
"src": [
"node_modules/jquery/dist/jquery.min.js",
"node_modules/jquery.cookie/jquery.cookie.js",
"node_modules/handlebars/dist/handlebars.min.js",
"assets/js/app.js",
"assets/js/calls.js",
"assets/js/defaults.js",
"assets/js/login.js",
"assets/js/dashboard.js",
"assets/js/stackoverflow.js",
"assets/js/intercom.js",
"assets/js/main.js",
"assets/js/niceadmin/bootstrap.min.js",
"assets/js/niceadmin/jquery.nicescroll.js",
"assets/js/niceadmin/jquery/scrollTo.min.js",
"assets/js/niceadmin/scripts.js",
],
"dest": "public/js/frontend.js"
}
},
concat_css: {
options: {
"processImport": false
},
all: {
src: ["assets/css/**/*.css"],
dest: "public/css/style.min.css"
},
}
});
// Load required modules
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-concat-css');
grunt.loadNpmTasks('grunt-contrib-copy');
// Task definitions
grunt.registerTask('default', ['copy', 'concat', 'concat_css']);
};