mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 12:12:48 +01:00
Fix for Grunt
This commit is contained in:
parent
6bcdc98d08
commit
ecd6422156
16
Gruntfile.js
16
Gruntfile.js
@ -4,12 +4,12 @@ module.exports = function(grunt) {
|
||||
pkg: grunt.file.readJSON('package.json'),
|
||||
dump_dir: (function() {
|
||||
var out = {};
|
||||
|
||||
|
||||
grunt.file.expand({ filter: 'isDirectory'}, 'public/fonts/invoice-fonts/*').forEach(function(path) {
|
||||
var fontName = /[^/]*$/.exec(path)[0],
|
||||
files = {},
|
||||
license='';
|
||||
|
||||
|
||||
// Add license text
|
||||
grunt.file.expand({ filter: 'isFile'}, path+'/*.txt').forEach(function(path) {
|
||||
var licenseText = grunt.file.read(path);
|
||||
@ -19,10 +19,10 @@ module.exports = function(grunt) {
|
||||
|
||||
license += "/*\n"+licenseText+"\n*/";
|
||||
});
|
||||
|
||||
|
||||
// Create files list
|
||||
files['public/js/vfs_fonts/'+fontName+'.js'] = [path+'/*.ttf'];
|
||||
|
||||
|
||||
out[fontName] = {
|
||||
options: {
|
||||
pre: license+'window.ninjaFontVfs=window.ninjaFontVfs||{};window.ninjaFontVfs.'+fontName+'=',
|
||||
@ -30,8 +30,8 @@ module.exports = function(grunt) {
|
||||
},
|
||||
files: files
|
||||
};
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
// Return the computed object
|
||||
return out;
|
||||
}()),
|
||||
@ -162,8 +162,8 @@ module.exports = function(grunt) {
|
||||
nonull: true,
|
||||
options: {
|
||||
process: false
|
||||
}*/
|
||||
},
|
||||
}
|
||||
},*/
|
||||
/*js_pdf: {
|
||||
src: [
|
||||
'public/js/pdf_viewer.js',
|
||||
|
Loading…
Reference in New Issue
Block a user