Moving Underscore files to a subfolder

This commit is contained in:
Benedek Farkas
2025-10-03 16:35:20 +02:00
parent 63daa97df2
commit b6a96f8e6e
5 changed files with 6 additions and 4 deletions

View File

@@ -71,7 +71,7 @@
},
{
"inputs": [ "Assets/Js/Underscore/underscore.js" ],
"output": "Scripts/underscore.js"
"output": "Scripts/Underscore/underscore.js"
},
{
"inputs": [ "Assets/Js/History/history.js" ],

View File

@@ -770,8 +770,8 @@
<Content Include="Scripts\Moment\moment.min.js" />
<Content Include="Scripts\jQuery.TimeEntry\jquery.timeentry.js" />
<Content Include="Scripts\jQuery.TimeEntry\jquery.timeentry.min.js" />
<Content Include="Scripts\underscore.js" />
<Content Include="Scripts\underscore.min.js" />
<Content Include="Scripts\Underscore\underscore.js" />
<Content Include="Scripts\Underscore\underscore.min.js" />
<Content Include="Scripts\uri.js" />
<Content Include="Scripts\uri.min.js" />
<Content Include="Styles\Bootstrap\bootstrap-grid.css" />

View File

@@ -4,7 +4,9 @@ namespace Orchard.Resources.ResourceManifests {
public class Underscore : IResourceManifestProvider {
public void BuildManifests(ResourceManifestBuilder builder) {
var manifest = builder.Add();
manifest.DefineScript("Underscore").SetUrl("underscore.min.js", "underscore.js").SetVersion("1.7.0");
manifest.DefineScript("Underscore")
.SetUrl("Underscore/underscore.min.js", "Underscore/underscore.js")
.SetVersion("1.7.0");
}
}
}