1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 23:22:52 +01:00
invoiceninja/Gruntfile.js

73 lines
2.6 KiB
JavaScript
Raw Normal View History

2014-04-28 22:05:37 +02:00
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
process: function(src, filepath) {
// Fix path for image and font resources
if(filepath.indexOf('.css', filepath.length - 4) !== -1) {
return src.replace(/\.\.\/(images|fonts)\//g, '$1/');
// Don't do anything for unknown file types
} else {
return src;
}
},
},
2014-04-28 22:05:37 +02:00
js: {
src: [
'public/vendor/jquery/dist/jquery.js',
2014-07-15 22:36:40 +02:00
'public/vendor/jquery-ui/ui/jquery-ui.js',
2014-04-28 22:05:37 +02:00
'public/vendor/bootstrap/dist/js/bootstrap.min.js',
'public/vendor/datatables/media/js/jquery.dataTables.js',
'public/vendor/datatables-bootstrap3/BS3/assets/js/datatables.js',
'public/vendor/knockout.js/knockout.js',
'public/vendor/knockout-mapping/build/output/knockout.mapping-latest.js',
'public/vendor/knockout-sortable/build/knockout-sortable.min.js',
'public/vendor/underscore/underscore.js',
'public/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js',
'public/vendor/typeahead.js/dist/typeahead.min.js',
'public/vendor/accounting/accounting.min.js',
2014-04-29 22:46:40 +02:00
'public/vendor/spectrum/spectrum.js',
2014-04-28 22:05:37 +02:00
'public/js/bootstrap-combobox.js',
2014-06-16 00:13:31 +02:00
'public/vendor/jspdf/dist/jspdf.min.js',
2014-06-15 23:49:07 +02:00
//'public/js/jspdf.source.js',
//'public/js/jspdf.plugin.split_text_to_size.js',
2014-04-28 22:05:37 +02:00
'public/js/script.js',
],
dest: 'public/built.js',
nonull: true
2014-04-28 22:05:37 +02:00
},
css: {
src: [
'public/vendor/bootstrap/dist/css/bootstrap.min.css',
'public/vendor/datatables/media/css/jquery.dataTables.css',
'public/vendor/datatables-bootstrap3/BS3/assets/css/datatables.css',
'public/vendor/font-awesome/css/font-awesome.min.css',
'public/vendor/bootstrap-datepicker/css/datepicker.css',
2014-04-29 22:46:40 +02:00
'public/vendor/spectrum/spectrum.css',
2014-04-28 22:05:37 +02:00
'public/css/bootstrap-combobox.css',
'public/css/typeahead.js-bootstrap.css',
'public/css/style.css',
],
dest: 'public/built.css',
nonull: true
2014-04-28 22:05:37 +02:00
},
css_public: {
src: [
'public/vendor/bootstrap/dist/css/bootstrap.min.css',
'public/css/bootstrap.splash.css',
'public/css/splash.css',
],
dest: 'public/built.public.css',
nonull: true
2014-04-28 22:05:37 +02:00
}
}
});
2014-04-28 22:05:37 +02:00
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.registerTask('default', ['concat']);
};