Skip to content

Commit b1ca28f

Browse files
hsbtclaude
andcommitted
Add build-css task as prerequisite for build and serve
Since compiled.css is no longer in the repository, rake build and rake serve need to generate it first. This also covers rake test which depends on build. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f58c153 commit b1ca28f

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Rakefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,23 @@ CONFIG = "_config.yml"
1313

1414
task default: [:build]
1515

16+
desc "Build CSS with Tailwind"
17+
task :"build-css" do
18+
sh "npm run build-css"
19+
end
20+
1621
desc "Run tests (test-linter, lint, build)"
1722
task test: %i[test-news-plugin test-html-lang-plugin test-linter lint build]
1823

1924
desc "Build the Jekyll site"
20-
task :build do
25+
task build: :"build-css" do
2126
require "jekyll"
2227

2328
Jekyll::Commands::Build.process({})
2429
end
2530

2631
desc "Serve the Jekyll site locally"
27-
task :serve do
32+
task serve: :"build-css" do
2833
require "jekyll"
2934

3035
Jekyll::Commands::Serve.process({})

0 commit comments

Comments
 (0)