Skip to content

Commit 9039c17

Browse files
committed
feat(shouldnt just push): but incase common desktop
1 parent 170b140 commit 9039c17

File tree

10 files changed

+18453
-0
lines changed

10 files changed

+18453
-0
lines changed

Package.BlazorComponentLibrary/Package.BlazorComponentLibrary.csproj

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,22 @@
4646
<Content Remove="..\CICDPackageLocation\**\*" />
4747
<None Remove="..\CICDPackageLocation\**\*" />
4848
</ItemGroup>
49+
<ItemGroup>
50+
<Folder Include="Assets\" />
51+
<Folder Include="wwwroot\css\" />
52+
<Folder Include="wwwroot\js\" />
53+
</ItemGroup>
4954
<Target Name="WriteBclVersionToFile" BeforeTargets="PrepareForBuild">
5055
<WriteLinesToFile File="wwwroot/bclversion.txt" Lines="$(BCLVersion)" Overwrite="true" Encoding="UTF-8" />
5156
<WriteLinesToFile File="BCLVersion/VersionInfo.cs" Lines="namespace Package.BlazorComponentLibrary.BCLVersion { public static class VersionInfo { public static string Version = &quot;$(BCLVersion)&quot; %3B; } }" Overwrite="true" Encoding="UTF-8" />
5257
</Target>
58+
59+
<!--<Target Name="RunGulp" BeforeTargets="Build">
60+
<Exec Command="gulp" WorkingDirectory="Assets" />
61+
</Target>--> qqqq try this
5362

63+
<Target Name="RunGulp" BeforeTargets="Build">
64+
<Exec Command="npx gulp" />
65+
</Target>
66+
5467
</Project>
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// gulpfile.js
2+
3+
const gulp = require("gulp");
4+
const sass = require("gulp-sass")(require("sass"));
5+
const concat = require("gulp-concat");
6+
7+
// Compile SCSS to CSS
8+
gulp.task("sass", function () {
9+
return gulp
10+
.src("./scss/**/*.scss") // Adjust this path if needed
11+
.pipe(sass().on("error", sass.logError))
12+
.pipe(concat("site.css"))
13+
.pipe(gulp.dest("wwwroot/css"));
14+
});
15+
16+
// Copy Bootstrap CSS from node_modules
17+
gulp.task("bootstrap", function () {
18+
return gulp
19+
.src("node_modules/bootstrap/dist/css/bootstrap.min.css")
20+
.pipe(gulp.dest("wwwroot/css"));
21+
});
22+
23+
// Watch for changes
24+
gulp.task("watch", function () {
25+
gulp.watch("./scss/**/*.scss", gulp.series("sass"));
26+
});
27+
28+
// Default task
29+
gulp.task("default", gulp.series("bootstrap", "sass", "watch"));

0 commit comments

Comments
 (0)