filebrowser/Gruntfile.js

78 lines
2.2 KiB
JavaScript
Raw Normal View History

2015-09-16 11:18:12 +00:00
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.initConfig({
watch: {
2015-09-16 12:58:36 +00:00
sass: {
2016-01-31 22:14:17 +00:00
files: ['assets/src/css/**/*.css'],
tasks: ['concat', 'cssmin']
2015-09-16 12:58:36 +00:00
},
js: {
2015-09-19 13:25:35 +00:00
files: ['assets/src/js/**/*.js'],
tasks: ['uglify:main']
2015-09-16 12:58:36 +00:00
},
2015-09-16 11:18:12 +00:00
},
concat: {
css: {
src: ['node_modules/normalize.css/normalize.css',
'node_modules/font-awesome/css/font-awesome.css',
2015-09-22 18:37:01 +00:00
'node_modules/animate.css/source/_base.css',
'node_modules/animate.css/source/bouncing_entrances/bounceInRight.css',
2016-02-07 21:12:01 +00:00
'node_modules/animate.css/source/fading_entrances/fadeIn.css',
2015-09-22 18:37:01 +00:00
'node_modules/animate.css/source/fading_exits/fadeOut.css',
2016-01-31 22:14:17 +00:00
'assets/src/css/main.css'
2015-09-16 11:18:12 +00:00
],
2015-09-19 13:25:35 +00:00
dest: 'temp/css/main.css',
2015-09-16 12:02:19 +00:00
},
},
copy: {
main: {
files: [{
expand: true,
flatten: true,
src: ['node_modules/font-awesome/fonts/**'],
dest: 'assets/fonts'
}],
2015-09-16 11:18:12 +00:00
},
},
cssmin: {
2015-09-26 10:42:00 +00:00
options: {
2015-09-20 21:45:08 +00:00
keepSpecialComments: 0
2015-09-26 10:42:00 +00:00
},
2015-09-16 11:18:12 +00:00
target: {
files: [{
expand: true,
2015-09-19 13:25:35 +00:00
cwd: 'temp/css/',
2015-09-16 11:18:12 +00:00
src: ['*.css', '!*.min.css'],
2015-09-16 12:02:19 +00:00
dest: 'assets/css/',
2015-09-16 11:18:12 +00:00
ext: '.min.css'
}]
}
},
uglify: {
2015-09-19 13:25:35 +00:00
plugins: {
2015-09-16 11:18:12 +00:00
files: {
2015-09-19 13:25:35 +00:00
'assets/js/plugins.min.js': ['node_modules/jquery/dist/jquery.min.js',
2015-09-17 10:32:27 +00:00
'node_modules/perfect-scrollbar/dist/js/min/perfect-scrollbar.jquery.min.js',
'node_modules/showdown/dist/showdown.min.js',
'node_modules/noty/js/noty/packaged/jquery.noty.packaged.min.js',
2015-09-16 20:48:08 +00:00
'node_modules/jquery-pjax/jquery.pjax.js',
2015-09-17 10:32:27 +00:00
'node_modules/jquery-serializejson/jquery.serializejson.min.js',
2015-09-16 11:18:12 +00:00
]
}
2015-09-19 13:25:35 +00:00
},
main: {
files: {
'assets/js/app.min.js': ['assets/src/js/**/*.js']
}
2015-09-16 11:18:12 +00:00
}
}
});
2016-02-04 22:30:46 +00:00
grunt.registerTask('default', ['copy', 'concat', 'cssmin', 'uglify']);
2016-01-31 22:14:17 +00:00
};