Skip to content

Commit 5e20c16

Browse files
authored
Merge pull request #3 from DevExpress-Examples/25.1.3-feature-dxt-resources
25.1.3 feature dxt resources
2 parents fb018a2 + b240c9b commit 5e20c16

File tree

5 files changed

+63
-4
lines changed

5 files changed

+63
-4
lines changed

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,13 @@ _ReSharper*/
3030
.vs/
3131
#Nuget packages folder
3232
packages/
33+
34+
# Node.js Tools for Visual Studio
35+
node_modules/
36+
37+
# Uncomment if you have tasks that create the project's static files in wwwroot
38+
wwwroot/
39+
!wwwroot/css/site.css
40+
!wwwroot/css/theme-fluent.css
41+
!wwwroot/images/
42+
!wwwroot/favicon.ico

BlazorSlider/BlazorSlider.csproj

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,27 @@
33
<TargetFramework>net9.0</TargetFramework>
44
<Nullable>enable</Nullable>
55
<ImplicitUsings>enable</ImplicitUsings>
6+
<NodeModulesDir>$(ProjectDir)node_modules\</NodeModulesDir>
7+
<WwwRootDir>$(ProjectDir)wwwroot\</WwwRootDir>
68
</PropertyGroup>
9+
10+
<Target Name="DebugEnsureNodeEnv" BeforeTargets="BeforeBuild" Condition=" '$(Configuration)' == 'Debug' ">
11+
<!-- Ensure Node.js is installed -->
12+
<Exec Command="node --version" ContinueOnError="true">
13+
<Output TaskParameter="ExitCode" PropertyName="ErrorCode" />
14+
</Exec>
15+
<Error Condition="'$(ErrorCode)' != '0'" Text="Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE." />
16+
<Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..." />
17+
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />
18+
</Target>
19+
20+
<Target Name="CopyFilesFromNodeModules" BeforeTargets="Build">
21+
<ItemGroup>
22+
<StyleFiles Include="$(NodeModulesDir)devextreme-dist\css\dx.fluent.blue.light.css" />
23+
</ItemGroup>
24+
<Copy SourceFiles="@(StyleFiles)" DestinationFolder="$(WwwRootDir)css\%(RecursiveDir)" SkipUnchangedFiles="true" />
25+
</Target>
26+
727
<ItemGroup>
828
<PackageReference Include="DevExpress.Blazor" Version="25.1.*" />
929
</ItemGroup>

BlazorSlider/package-lock.json

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

BlazorSlider/package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"version": "1.0.0",
3+
"name": "asp.net",
4+
"private": true,
5+
"devDependencies": {
6+
"devextreme-dist": "~25.1"
7+
}
8+
}

BlazorSlider/wwwroot/css/dx.fluent.blue.light.css

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

0 commit comments

Comments
 (0)