Skip to content

Commit f03fe39

Browse files
committed
Add FontAwesome
1 parent 4fdec09 commit f03fe39

File tree

5 files changed

+74
-1
lines changed

5 files changed

+74
-1
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0" DefaultTargets="FontAwesome">
3+
<Import Project="../BuildSettings.targets" Condition=" '$(BuildSettingsImported)' == '' " />
4+
<Target Name="FontAwesome">
5+
<PropertyGroup>
6+
<PackageName>FontAwesome</PackageName>
7+
<IncludeBasePath>$(MSBuildProjectDirectory)/../node_modules/@fortawesome/fontawesome-free</IncludeBasePath>
8+
</PropertyGroup>
9+
<ItemGroup>
10+
<FontAwesomeIncludeFiles Include="$(IncludeBasePath)/**/*.min.js" />
11+
<FontAwesomeIncludeFiles Include="$(IncludeBasePath)/**/*.min.js.map" />
12+
<FontAwesomeIncludeFiles Include="$(IncludeBasePath)/**/*.min.css" />
13+
<FontAwesomeIncludeFiles Include="$(IncludeBasePath)/**/*.min.css.map" />
14+
<FontAwesomeIncludeFiles Include="$(IncludeBasePath)/**/*.svg" />
15+
<FontAwesomeIncludeFiles Include="$(IncludeBasePath)/**/*.ttf" />
16+
<FontAwesomeIncludeFiles Include="$(IncludeBasePath)/**/*.eot" />
17+
<FontAwesomeIncludeFiles Include="$(IncludeBasePath)/**/*.woff" />
18+
<FontAwesomeIncludeFiles Include="$(IncludeBasePath)/**/*.woff2" />
19+
<FontAwesomeIncludeFiles Include="$(IncludeBasePath)/*.json" />
20+
<FontAwesomeIncludeFiles Include="$(IncludeBasePath)/*.txt" />
21+
</ItemGroup>
22+
<RemoveDir Directories="$(TmpDir)" />
23+
<Copy SourceFiles="@(FontAwesomeIncludeFiles)" DestinationFolder="$(TmpDir)/Resources/%(RecursiveDir)" />
24+
<MSBuild Projects="$(MSBuildProjectDirectory)/InstallPackage.targets" Targets="InstallPackage" Properties="PackageName=$(PackageName)" />
25+
</Target>
26+
</Project>
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<dotnetnuke type="Package" version="5.0">
3+
<packages>
4+
<package name="FontAwesome" type="JavaScript_Library" version="05.12.00">
5+
<friendlyName>FontAwesome</friendlyName>
6+
<description>The iconic font, CSS, and SVG framework.</description>
7+
<owner>
8+
<name>https://github.com/FortAwesome/Font-Awesome#team</name>
9+
<organization>Fort Awesome</organization>
10+
<url>https://fontawesome.com/</url>
11+
<email>admin@fortawesome.com</email>
12+
</owner>
13+
<license>https://github.com/FortAwesome/Font-Awesome/blob/master/LICENSE.txt</license>
14+
<releaseNotes>https://github.com/FortAwesome/Font-Awesome/releases/tag/5.12.0</releaseNotes>
15+
<components>
16+
<component type="JavaScript_Library">
17+
<javaScriptLibrary>
18+
<libraryName>FontAwesome</libraryName>
19+
<fileName>all.min.js</fileName>
20+
<preferredScriptLocation>BodyBottom</preferredScriptLocation>
21+
<CDNPath>https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/js/all.min.js</CDNPath>
22+
<objectName>FontAwesome</objectName>
23+
</javaScriptLibrary>
24+
</component>
25+
<component type="ResourceFile">
26+
<resourceFiles>
27+
<basePath>Resources\Libraries\FontAwesome\05_12_00</basePath>
28+
<resourceFile>
29+
<name>Resources.zip</name>
30+
</resourceFile>
31+
</resourceFiles>
32+
</component>
33+
</components>
34+
</package>
35+
</packages>
36+
</dotnetnuke>

R7.Dnn.JavaScriptLibraries/R7.Dnn.JavaScriptLibraries.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
<None Include="R7.Dnn.JavaScriptLibraries.csproj" />
1313
</ItemGroup>
1414

15+
<ItemGroup>
16+
<Folder Include="FontAwesome\" />
17+
</ItemGroup>
1518
<Import Project="BlueimpGallery/Build.targets" />
1619
<Import Project="Lightbox2/Build.targets" />
1720
<Import Project="Colorbox/Build.targets" />
@@ -21,7 +24,8 @@
2124
<Import Project="LazyAds/Build.targets" />
2225
<Import Project="Select2/Build.targets" />
2326
<Import Project="Snowfall/Build.targets" />
24-
<Target Name="MakePackages" AfterTargets="Build" DependsOnTargets="BlueimpGallery;Lightbox2;Colorbox;React;ReactDOM;Rangy;LazyAds;Select2;Snowfall" />
27+
<Import Project="FontAwesome/Build.targets" />
28+
<Target Name="MakePackages" AfterTargets="Build" DependsOnTargets="BlueimpGallery;Lightbox2;Colorbox;React;ReactDOM;Rangy;LazyAds;Select2;Snowfall;FontAwesome" />
2529

2630
</Project>
2731

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "r7.dnn.javascriptlibraries",
33
"devDependencies": {
4+
"@fortawesome/fontawesome-free": "5.12.0",
45
"blueimp-gallery": "2.36.0",
56
"jquery-colorbox": "1.6.4",
67
"lazy-ads": "1.1.12",

0 commit comments

Comments
 (0)