Skip to content

feat: dynamically fetch samples and exclude Flix projects#36

Merged
magnus-madsen merged 4 commits intomasterfrom
feat/exclude-flix-projects
Mar 12, 2026
Merged

feat: dynamically fetch samples and exclude Flix projects#36
magnus-madsen merged 4 commits intomasterfrom
feat/exclude-flix-projects

Conversation

@magnus-madsen
Copy link
Copy Markdown
Member

@magnus-madsen magnus-madsen commented Mar 12, 2026

Summary

  • Refactor sampleFiles.mjs to dynamically fetch the example file list from the GitHub API instead of maintaining a hardcoded list
  • Exclude multi-file Flix projects (directories containing flix.toml) such as apps/ and package-manager/ examples
  • Print included sample names and total count at the end of the build for visibility

Test plan

  • Run node build-scripts/main.mjs and verify 153 samples are generated
  • Confirm no files from apps/ or package-manager/ directories appear in src/data/Samples.js
  • Verify the playground loads and sample selection works correctly

🤖 Generated with Claude Code

magnus-madsen and others added 4 commits March 12, 2026 09:42
Refactor sampleFiles.mjs to fetch the file list from the GitHub API
instead of maintaining a hardcoded list. Exclude multi-file Flix projects
(identified by flix.toml) from the samples. Print included samples at
the end of the build.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Rename build script for clarity and apply Prettier formatting to pass CI.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Undo accidental changes to package-lock.json.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@magnus-madsen magnus-madsen merged commit 631f01d into master Mar 12, 2026
2 checks passed
@magnus-madsen magnus-madsen deleted the feat/exclude-flix-projects branch March 12, 2026 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant