Skip to content
Snippets Groups Projects
Commit 4514ea76 authored by Kevin Hill's avatar Kevin Hill
Browse files

converting gulpfile to es6

parent 4529f4f6
No related branches found
No related tags found
No related merge requests found
/* jshint node:true */
const _ = require('lodash');
const glob = require('glob');
export function getChartTypes(callback) {
glob('*.php', {
cwd: '../src/Charts/',
nomount: true
}, (err, chartTypes) => {
_.pullAll(chartTypes, [
'Chart.php',
'ChartBuilder.php',
'ChartFactory.php',
]);
callback(_.map(chartTypes, chartType => {
return chartType.slice(0, -4);
}));
});
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment