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

135 lines
4.7 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;
/**
* Configuring assets path.
* Explicitly setting it to empty, as we're not using Laravels resources/assets folder
*
* @type {string}
*/
elixir.config.assetsPath = '';
/**
* Configuring Javascript assets path.
* Explicitly setting it to empty, as we're not using Laravels resources/assets/js folder
*
* @type {string}
*/
elixir.config.js.folder = '';
2016-07-26 11:46:15 +02:00
/**
* Configuring CSS assets path.
* Explicitly setting it to empty, as we're not using Laravels resources/assets/css folder
*
* @type {string}
*/
elixir.config.css.folder = '';
/**
* 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 = 'resources/assets/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',
'public/css/bootstrap-combobox.css',
2016-08-15 21:07:41 +02:00
'public/css/public.style.css',
'public/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',
bowerDir + '/sweetalert/dist/sweetalert.css',
'public/css/bootstrap-combobox.css',
'public/css/typeahead.js-bootstrap.css',
2016-08-15 21:07:41 +02:00
'public/css/style.css',
'public/css/fonts.css'
2016-07-29 16:10:38 +02:00
], 'public/css/built.css');
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([
'public/js/pdf_viewer.js',
'public/js/compatibility.js',
2016-08-09 14:22:33 +02:00
//'public/js/pdfmake.min.js',
'public/js/pdfmake.js',
2016-07-24 17:43:03 +02:00
'public/js/vfs.js'
], 'public/pdf.built.js');
2016-08-15 21:07:41 +02:00
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 + '/jspdf/dist/jspdf.min.js',
bowerDir + '/moment/moment.js',
bowerDir + '/moment-timezone/builds/moment-timezone-with-data.js',
//bowerDir + '/stacktrace-js/dist/stacktrace-with-polyfills.min.js',
bowerDir + '/fuse.js/src/fuse.js',
bowerDir + '/sweetalert/dist/sweetalert-dev.js',
'public/js/bootstrap-combobox.js',
'public/js/script.js',
'public/js/pdf.pdfmake.js',
], 'public/built.js');
2016-07-22 12:36:58 +02:00
2015-03-12 01:44:39 +01:00
});