mirror of https://github.com/lidarr/Lidarr
handlebar partials are compiled into template.js
This commit is contained in:
parent
efa9cf6380
commit
4730bc796d
|
@ -74,6 +74,7 @@ module.exports = function (grunt) {
|
||||||
handlebars: {
|
handlebars: {
|
||||||
options: {
|
options: {
|
||||||
namespace : "Templates",
|
namespace : "Templates",
|
||||||
|
partialRegex: /Partial.html/,
|
||||||
wrapped : true,
|
wrapped : true,
|
||||||
processName: function (fileName) {
|
processName: function (fileName) {
|
||||||
return fileName
|
return fileName
|
||||||
|
@ -83,14 +84,14 @@ module.exports = function (grunt) {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
files : {
|
files : {
|
||||||
src : ['UI/**/*emplate.html'],
|
src : ['UI/**/*emplate.html','UI/**/*Partial.html'],
|
||||||
dest: '_output/UI/templates.js'
|
dest: '_output/UI/templates.js'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
copy: {
|
copy: {
|
||||||
index : {
|
index : {
|
||||||
src : 'UI/**/index.html',
|
src : 'UI/index.html',
|
||||||
dest: '_output/'
|
dest: '_output/'
|
||||||
},
|
},
|
||||||
scripts: {
|
scripts: {
|
||||||
|
@ -144,7 +145,7 @@ module.exports = function (grunt) {
|
||||||
files: '<%= copy.images.src %>',
|
files: '<%= copy.images.src %>',
|
||||||
tasks: ['copy:images']
|
tasks: ['copy:images']
|
||||||
},
|
},
|
||||||
copyImages : {
|
copyJpg : {
|
||||||
files: '<%= copy.jpg.src %>',
|
files: '<%= copy.jpg.src %>',
|
||||||
tasks: ['copy:jpg']
|
tasks: ['copy:jpg']
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue