Skip to content

feat: add script for formatting examples#29

Closed
jaschdoc wants to merge 2 commits into
flix:masterfrom
jaschdoc:examples-script
Closed

feat: add script for formatting examples#29
jaschdoc wants to merge 2 commits into
flix:masterfrom
jaschdoc:examples-script

Conversation

@jaschdoc
Copy link
Copy Markdown
Member

The script is fairly simple and just helps with future updates. No fancy automatic fetching from the Flix repo. Just simple formatting.

@magnus-madsen
Copy link
Copy Markdown
Member

Can this script be connected to the other script? We just want something simple, not some complex process.

@jaschdoc
Copy link
Copy Markdown
Member Author

Probably? How do you want to connect it?

@magnus-madsen
Copy link
Copy Markdown
Member

No idea. But can you look at package.json etc?

@jaschdoc
Copy link
Copy Markdown
Member Author

I have given this some thought and it seems brittle to hook it up. It is just a script that prints the names of the files in the main flix repository that can be helpful when maintaining the sampleFiles.mjs file. It must be invoked from the examples dir in https://github.com/flix/flix

I could make it prompt for a path to the flix project but if the examples dir changes it relative path in the main repo, then this script could break. Otherwise, it would have to prompt for the full path to the examples dir. Either way, it is such a simple helper thing that adding infrastructure around it seems like overkill.

@jaschdoc
Copy link
Copy Markdown
Member Author

Closing this for now.

@jaschdoc jaschdoc closed this Sep 15, 2025
@jaschdoc jaschdoc deleted the examples-script branch September 15, 2025 09:55
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.

2 participants