Skip to content

Commit 4963859

Browse files
committed
feat(builds): we have the nhsuk.css
1 parent 9039c17 commit 4963859

File tree

11 files changed

+7749
-14205
lines changed

11 files changed

+7749
-14205
lines changed

Package.BlazorComponentLibrary/Package.BlazorComponentLibrary.csproj

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,9 @@
5555
<WriteLinesToFile File="wwwroot/bclversion.txt" Lines="$(BCLVersion)" Overwrite="true" Encoding="UTF-8" />
5656
<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" />
5757
</Target>
58-
59-
<!--<Target Name="RunGulp" BeforeTargets="Build">
60-
<Exec Command="gulp" WorkingDirectory="Assets" />
61-
</Target>--> qqqq try this
6258

63-
<Target Name="RunGulp" BeforeTargets="Build">
64-
<Exec Command="npx gulp" />
65-
</Target>
59+
<Target Name="RunGulp" BeforeTargets="Build">
60+
<Exec Command="npx gulp" WorkingDirectory="$(ProjectDir)"/>
61+
</Target>
6662

6763
</Project>

Package.BlazorComponentLibrary/gulpfile.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,18 @@ gulp.task("sass", function () {
1414
});
1515

1616
// Copy Bootstrap CSS from node_modules
17-
gulp.task("bootstrap", function () {
17+
// .src("node_modules/bootstrap/dist/css/bootstrap.min.css")
18+
//.src("node_modules/nhsuk-frontend/dist/nhsuk-9.0.1.min.css") //if providing the css too
19+
gulp.task("copy-nhsuk-css", function () {
1820
return gulp
19-
.src("node_modules/bootstrap/dist/css/bootstrap.min.css")
21+
.src("node_modules/nhse-tel-frontend/dist/nhsuk.css")
2022
.pipe(gulp.dest("wwwroot/css"));
2123
});
2224

2325
// Watch for changes
2426
gulp.task("watch", function () {
2527
gulp.watch("./scss/**/*.scss", gulp.series("sass"));
2628
});
27-
29+
//,"watch"
2830
// Default task
29-
gulp.task("default", gulp.series("bootstrap", "sass", "watch"));
31+
gulp.task("default", gulp.series("copy-nhsuk-css", "sass"));

Package.BlazorComponentLibrary/package-lock.json

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

Package.BlazorComponentLibrary/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"license": "ISC",
1111
"dependencies": {
1212
"bootstrap": "^5.3.5",
13+
"nhse-tel-frontend": "^0.0.2",
1314
"nhsuk-frontend": "^9.0.1",
1415
"nunjucks": "^3.2.4"
1516
},
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
// main.scss
2-
@import "../node_modules/bootstrap/scss/bootstrap";
3-
//qqqq change to nhse-tel

Package.BlazorComponentLibrary/try/gulp-nope.js

Lines changed: 0 additions & 120 deletions
This file was deleted.

0 commit comments

Comments
 (0)