1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 12:12:48 +01:00
invoiceninja/gulpfile.js
Holger Lösken 3d471f7c82 Set up D3.js with Elixir
- Use latest V3 version (3.5.17)
- V4 not supported by IN / gives errors
- Use Elixir to minify + deploy to public dir
2016-07-24 13:31:25 +02:00

49 lines
902 B
JavaScript

var elixir = require('laravel-elixir');
/**
* Set Elixir Source Maps
*
* @type {boolean}
*/
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 = '';
/**
* Directory for bower source files.
* If changing this, please also see .bowerrc
*
* @type {string}
*/
var bowerDir = 'public/vendor';
elixir(function(mix) {
/**
* CSS configuration
*/
/**
* 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');
});