Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/spotty-planes-boil.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-solana-dapp': minor
---

dynamic template lists by fetching them from registry url
32 changes: 16 additions & 16 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,24 @@ jobs:
matrix:
node: [20, 22]
pm: [npm, pnpm, yarn]
template:
[
gill-next-tailwind,
gill-next-tailwind-basic,
gill-next-tailwind-counter,
gill-node-express,
gill-node-script,
gill-react-vite-tailwind,
gill-react-vite-tailwind-basic,
gill-react-vite-tailwind-counter,
template: [
# TODO: Make these values dynamic by adding a parameter to CLI
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In a follow up I'll update this test and make it similar to how it works here but instead of a hardcoded templates.json I'll add an option to create-solana-dapp to generate this list based on the templates from the registry url.

template-next-tailwind,
template-next-tailwind-basic,
template-next-tailwind-counter,
template-node-express,
template-node-script,
template-react-vite-tailwind,
template-react-vite-tailwind-basic,
template-react-vite-tailwind-counter,
web3js-expo,
web3js-expo-paper,
web3js-next-tailwind,
web3js-next-tailwind-basic,
web3js-next-tailwind-counter,
web3js-react-vite-tailwind,
web3js-react-vite-tailwind-basic,
web3js-react-vite-tailwind-counter,
legacy-next-tailwind,
legacy-next-tailwind-basic,
legacy-next-tailwind-counter,
legacy-react-vite-tailwind,
legacy-react-vite-tailwind-basic,
legacy-react-vite-tailwind-counter,
]

steps:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
},
"packageManager": "pnpm@10.5.2",
"dependencies": {
"@beeman/repokit": "0.0.0-canary-20250801172233",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We depend on repokit for fetching and parsing the template.json file.

This will make it easier to iterate over the data structures and helpers (in repokit) without having to maintain a copy of similar logic here.

"@clack/prompts": "^0.7.0",
"commander": "^13.1.0",
"giget": "^1.2.4",
Expand Down
85 changes: 85 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

119 changes: 0 additions & 119 deletions src/templates/frameworks.ts

This file was deleted.

Loading