Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added directive js_collect_targets #61

Merged
merged 5 commits into from
Oct 17, 2024
Merged

Added directive js_collect_targets #61

merged 5 commits into from
Oct 17, 2024

Conversation

ColinHeathman
Copy link
Collaborator

@ColinHeathman ColinHeathman commented Oct 9, 2024

js_collect_pages which can be used in a NextJS style page root to mark each direct leaf as a page

gazelle/configure.go Outdated Show resolved Hide resolved
@ColinHeathman ColinHeathman changed the title Added directive js_collect_pages which can be used in a NextJS Added directive js_collect_pages Oct 9, 2024
gazelle/generate.go Outdated Show resolved Hide resolved
@ColinHeathman ColinHeathman force-pushed the collect-pages branch 4 times, most recently from c4ce0aa to 07ae5f5 Compare October 9, 2024 23:15
style page root to mark each direct leaf as a page
@ColinHeathman ColinHeathman force-pushed the collect-pages branch 2 times, most recently from 0a7bbf9 to 23c8701 Compare October 10, 2024 18:39
Reworked the nextjs specific directives to be a
"js_collect_targets" directive while making use of
the existing "js_collect_all" directive for similar
behaviour
@ColinHeathman ColinHeathman changed the title Added directive js_collect_pages Added directive js_collect_targets Oct 11, 2024
generatedRules = append(generatedRules, generatedAWARules...)
generatedImports = append(generatedImports, generatedAWAImports...)

generatedTSRules, generatedTSImports := lang.genCollectedTargetsRule(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand how referencing works, is calling this generatedTSRules, generatedTSImports make the imports to be overwritten

@ColinHeathman ColinHeathman merged commit 8ba8fd7 into main Oct 17, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants