1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 12:42:36 +01:00
invoiceninja/gulpfile.js

180 lines
6.2 KiB
JavaScript
Raw Normal View History

2015-03-12 01:44:39 +01:00
var elixir = require('laravel-elixir');
2016-07-22 12:36:58 +02:00
/**
* Set Elixir Source Maps
*
* @type {boolean}
2015-03-12 01:44:39 +01:00
*/
2016-07-22 12:36:58 +02:00
elixir.config.sourcemaps = true;
/**
* Remove all CSS comments
*
* @type {{discardComments: {removeAll: boolean}}}
*/
elixir.config.css.minifier.pluginOptions = {
discardComments: {
removeAll: true
}
};
2016-07-22 12:36:58 +02:00
/**
* Directory for bower source files.
* If changing this, please also see .bowerrc
*
* @type {string}
*/
var bowerDir = '../bower';
2015-03-12 01:44:39 +01:00
elixir(function(mix) {
2016-07-22 12:36:58 +02:00
/**
* CSS configuration
*/
2016-07-26 11:46:15 +02:00
mix.styles([
bowerDir + '/bootstrap/dist/css/bootstrap.css',
bowerDir + '/font-awesome/css/font-awesome.css',
bowerDir + '/datatables/media/css/jquery.dataTables.css',
bowerDir + '/datatables-bootstrap3/BS3/assets/css/datatables.css',
'bootstrap-combobox.css',
'public.style.css',
'fonts.css'
2016-07-26 11:46:15 +02:00
], 'public/css/built.public.css');
2016-07-22 12:36:58 +02:00
2016-07-29 16:10:38 +02:00
mix.styles([
bowerDir + '/bootstrap/dist/css/bootstrap.css',
bowerDir + '/bootstrap-datepicker/dist/css/bootstrap-datepicker3.css',
bowerDir + '/datatables/media/css/jquery.dataTables.css',
bowerDir + '/datatables-bootstrap3/BS3/assets/css/datatables.css',
bowerDir + '/font-awesome/css/font-awesome.css',
bowerDir + '/dropzone/dist/dropzone.css',
bowerDir + '/spectrum/spectrum.css',
2016-10-25 17:24:59 +02:00
bowerDir + '/sweetalert2/dist/sweetalert2.css',
2017-09-25 10:52:57 +02:00
bowerDir + '/toastr/toastr.css',
'bootstrap-combobox.css',
'typeahead.js-bootstrap.css',
'style.css',
2016-09-01 17:52:26 +02:00
'sidebar.css',
2016-09-05 21:18:35 +02:00
'colors.css',
2017-02-15 23:47:37 +01:00
'fonts.css',
2016-07-29 16:10:38 +02:00
], 'public/css/built.css');
2017-02-15 23:47:37 +01:00
mix.styles([
'login.css'
], 'public/css/built.login.css');
2016-09-11 16:30:23 +02:00
mix.styles([
bowerDir + '/bootstrap-daterangepicker/daterangepicker.css'
], 'public/css/daterangepicker.css');
2017-09-29 11:59:53 +02:00
mix.styles([
bowerDir + '/jt.timepicker/jquery.timepicker.css'
], 'public/css/jquery.timepicker.css');
2016-11-17 15:29:02 +01:00
mix.styles([
bowerDir + '/select2/dist/css/select2.css'
], 'public/css/select2.css');
2017-01-22 11:09:29 +01:00
mix.styles([
bowerDir + '/tablesorter/dist/css/theme.bootstrap_3.min.css',
bowerDir + '/tablesorter/dist/css/theme.bootstrap.min.css',
bowerDir + '/tablesorter/dist/css/widget.grouping.min.css'
], 'public/css/tablesorter.css');
2017-09-12 12:43:59 +02:00
mix.styles([
bowerDir + '/fullcalendar/dist/fullcalendar.css'
], 'public/css/fullcalendar.css');
2016-09-11 16:30:23 +02:00
2016-07-22 12:36:58 +02:00
/**
* JS configuration
*/
mix.scripts(['resources/assets/js/Chart.js'], 'public/js/Chart.min.js')
.scripts(['resources/assets/js/d3.js'], 'public/js/d3.min.js');
2016-08-09 14:22:33 +02:00
2016-07-24 17:43:03 +02:00
mix.scripts([
'pdf_viewer.js',
'compatibility.js',
2017-07-28 11:53:49 +02:00
bowerDir + '/pdfmake/build/pdfmake.js',
'vfs.js'
2016-07-24 17:43:03 +02:00
], 'public/pdf.built.js');
2016-08-15 21:07:41 +02:00
2016-09-11 16:30:23 +02:00
mix.scripts([
bowerDir + '/bootstrap-daterangepicker/daterangepicker.js'
], 'public/js/daterangepicker.min.js');
2017-09-29 11:59:53 +02:00
mix.scripts([
bowerDir + '/jt.timepicker/jquery.timepicker.js'
], 'public/js/jquery.timepicker.js');
2017-09-12 12:43:59 +02:00
mix.scripts([
2017-09-12 16:16:18 +02:00
bowerDir + '/fullcalendar/dist/fullcalendar.js',
bowerDir + '/fullcalendar/dist/locale-all.js',
2017-09-12 12:43:59 +02:00
], 'public/js/fullcalendar.min.js');
2017-02-22 19:57:32 +01:00
mix.scripts([
bowerDir + '/card/dist/card.js',
], 'public/js/card.min.js');
2017-10-23 20:47:24 +02:00
mix.scripts([
bowerDir + '/qrcode.js/qrcode.js',
], 'public/js/qrcode.min.js');
2017-01-22 11:09:29 +01:00
mix.scripts([
bowerDir + '/tablesorter/dist/js/jquery.tablesorter.combined.js',
bowerDir + '/tablesorter/dist/js/widgets/widget-grouping.min.js',
bowerDir + '/tablesorter/dist/js/widgets/widget-uitheme.min.js',
bowerDir + '/tablesorter/dist/js/widgets/widget-filter.min.js',
], 'public/js/tablesorter.min.js');
2016-11-17 15:29:02 +01:00
mix.scripts([
2016-11-18 14:31:43 +01:00
bowerDir + '/select2/dist/js/select2.js',
'resources/assets/js/maximize-select2-height.js',
2016-11-17 15:29:02 +01:00
], 'public/js/select2.min.js');
2016-11-04 14:34:15 +01:00
mix.scripts([
bowerDir + '/jSignature/libs/jSignature.min.js'
], 'public/js/jSignature.min.js');
2016-08-15 00:03:47 +02:00
mix.scripts([
bowerDir + '/jquery/dist/jquery.js',
bowerDir + '/jquery-ui/jquery-ui.js',
bowerDir + '/bootstrap/dist/js/bootstrap.js',
bowerDir + '/datatables/media/js/jquery.dataTables.js',
bowerDir + '/datatables-bootstrap3/BS3/assets/js/datatables.js',
bowerDir + '/knockout.js/knockout.js',
bowerDir + '/knockout-mapping/build/output/knockout.mapping-latest.js',
bowerDir + '/knockout-sortable/build/knockout-sortable.js',
bowerDir + '/underscore/underscore.js',
bowerDir + '/bootstrap-datepicker/dist/js/bootstrap-datepicker.js',
bowerDir + '/bootstrap-datepicker/dist/locales/bootstrap-datepicker.de.min.js',
bowerDir + '/bootstrap-datepicker/dist/locales/bootstrap-datepicker.da.min.js',
bowerDir + '/bootstrap-datepicker/dist/locales/bootstrap-datepicker.pt-BR.min.js',
bowerDir + '/bootstrap-datepicker/dist/locales/bootstrap-datepicker.nl.min.js',
bowerDir + '/bootstrap-datepicker/dist/locales/bootstrap-datepicker.fr.min.js',
bowerDir + '/bootstrap-datepicker/dist/locales/bootstrap-datepicker.it.min.js',
bowerDir + '/bootstrap-datepicker/dist/locales/bootstrap-datepicker.lt.min.js',
bowerDir + '/bootstrap-datepicker/dist/locales/bootstrap-datepicker.no.min.js',
bowerDir + '/bootstrap-datepicker/dist/locales/bootstrap-datepicker.es.min.js',
bowerDir + '/bootstrap-datepicker/dist/locales/bootstrap-datepicker.sv.min.js',
bowerDir + '/dropzone/dist/dropzone.js',
bowerDir + '/typeahead.js/dist/typeahead.jquery.js',
bowerDir + '/accounting/accounting.js',
bowerDir + '/spectrum/spectrum.js',
bowerDir + '/moment/moment.js',
bowerDir + '/moment-timezone/builds/moment-timezone-with-data.js',
2017-09-25 11:22:19 +02:00
bowerDir + '/stacktrace-js/stacktrace.js',
2016-10-25 17:24:59 +02:00
bowerDir + '/es6-promise/es6-promise.auto.js',
bowerDir + '/sweetalert2/dist/sweetalert2.js',
2016-09-15 12:41:09 +02:00
bowerDir + '/nouislider/distribute/nouislider.js',
2016-12-06 22:39:10 +01:00
bowerDir + '/mousetrap/mousetrap.js',
2017-09-25 10:52:57 +02:00
bowerDir + '/toastr/toastr.js',
2016-10-25 17:24:59 +02:00
bowerDir + '/fuse.js/src/fuse.js',
'bootstrap-combobox.js',
'script.js',
'pdf.pdfmake.js',
2016-08-15 00:03:47 +02:00
], 'public/built.js');
2016-07-22 12:36:58 +02:00
2015-03-12 01:44:39 +01:00
});