-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
50 lines (45 loc) · 4.17 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
module.exports = function(grunt) {
grunt.initConfig({
sass: {
options: {
includePaths: ['node_modules/bootstrap-sass/assets/stylesheets']
},
dist: {
options: {
outputStyle: 'compressed'
},
files: [{
'public/assets/css/main.css': 'public/assets/scss/main.scss', /* 'All main SCSS' */
'public/assets/css/color_skins.css': 'public/assets/scss/color_skins.scss', /* 'All Color Option' */
'public/assets/css/chatapp.css': 'public/assets/scss/pages/chatapp.scss', /* 'Chat App SCSS to CSS' */
'public/assets/css/blog.css': 'public/assets/scss/pages/blog.scss', /* 'Blog App SCSS to CSS' */
'public/assets/css/ecommerce.css': 'public/assets/scss/pages/ecommerce.scss', /* 'ecommerce SCSS to CSS' */
'public/assets/css/inbox.css': 'public/assets/scss/pages/inbox.scss', /* 'inbox App SCSS to CSS' */
}]
}
},
uglify: {
my_target: {
files: {
'public/assets/bundles/libscripts.bundle.js': ['public/assets/vendor/jquery/jquery-3.3.1.min.js','public/assets/vendor/bootstrap/js/popper.min.js','public/assets/vendor/bootstrap/js/bootstrap.js'], /* main js*/
'public/assets/bundles/vendorscripts.bundle.js': ['public/assets/vendor/metisMenu/metisMenu.js','public/assets/vendor/jquery-slimscroll/jquery.slimscroll.min.js','public/assets/vendor/bootstrap-progressbar/js/bootstrap-progressbar.min.js','public/assets/vendor/jquery-sparkline/js/jquery.sparkline.min.js'], /* coman js*/
'public/assets/bundles/mainscripts.bundle.js':['public/assets/js/common.js'], /*coman js*/
'public/assets/bundles/c3.bundle.js':['public/assets/vendor/charts-c3/js/c3.min.js', 'public/assets/vendor/charts-c3/js/d3.v3.min.js'],
'public/assets/bundles/morrisscripts.bundle.js': ['public/assets/vendor/raphael/raphael.min.js','public/assets/vendor/morrisjs/morris.js'], /* Morris Plugin Js */
'public/assets/bundles/knob.bundle.js': ['public/assets/vendor/jquery-knob/jquery.knob.min.js'], /* knob js*/
'public/assets/bundles/chartist.bundle.js':['public/assets/vendor/chartist/js/chartist.min.js','public/assets/vendor/chartist-plugin-tooltip/chartist-plugin-tooltip.min.js','public/assets/vendor/chartist-plugin-axistitle/chartist-plugin-axistitle.min.js','public/assets/vendor/chartist-plugin-legend-latest/chartist-plugin-legend.js','public/assets/vendor/chartist/Chart.bundle.js'], /*chartist js*/
'public/assets/bundles/easypiechart.bundle.js': ['public/assets/vendor/jquery.easy-pie-chart/dist/jquery.easypiechart.min.js','public/assets/vendor/jquery.easy-pie-chart/easy-pie-chart.init.js'],
'public/assets/bundles/flotscripts.bundle.js': ['public/assets/vendor/flot-charts/jquery.flot.js','public/assets/vendor/flot-charts/jquery.flot.resize.js','public/assets/vendor/flot-charts/jquery.flot.pie.js','public/assets/vendor/flot-charts/jquery.flot.categories.js','public/assets/vendor/flot-charts/jquery.flot.time.js'], /* Flot Chart js*/
'public/assets/bundles/echarts.bundle.js': ['public/assets/vendor/echart/echarts.min.js'],
'public/assets/bundles/fullcalendarscripts.bundle.js': ['public/assets/vendor/fullcalendar/moment.min.js'], /* calender page js */
'public/assets/bundles/datatablescripts.bundle.js': ['public/assets/vendor/jquery-datatable/jquery.dataTables.min.js','public/assets/vendor/jquery-datatable/dataTables.bootstrap4.min.js'], /* Jquery DataTable Plugin Js */
'public/assets/bundles/jvectormap.bundle.js': ['public/assets/vendor/jvectormap/jquery-jvectormap-2.0.3.min.js','public/assets/vendor/jvectormap/jquery-jvectormap-world-mill-en.js'], /* ChartJs js*/
}
}
}
});
grunt.loadNpmTasks("grunt-sass");
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask("buildcss", ["sass"]);
grunt.registerTask("buildjs", ["uglify"]);
};