Skip to content

feat(create-typink): add network selection#263

Merged
sinzii merged 14 commits intomainfrom
feature/network-selection
Sep 10, 2025
Merged

feat(create-typink): add network selection#263
sinzii merged 14 commits intomainfrom
feature/network-selection

Conversation

@1cedrus
Copy link
Member

@1cedrus 1cedrus commented Sep 8, 2025

Changes:

  • Add network selections
  • Add ESLint for template testing

Copilot AI review requested due to automatic review settings September 8, 2025 09:20
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds network selection functionality to the create-typink CLI tool and updates all template files with improved standardization.

  • Adds CLI support for network selection via -N/--networks option for both legacy (Aleph Zero, Astar) and v6 (Passet Hub, Kusama Asset Hub, etc.) ink versions
  • Standardizes template files by removing unused React imports, updating React DOM imports, adding ESLint configurations, and updating dependency versions
  • Implements dynamic network configuration system with placeholder replacement in template files

Reviewed Changes

Copilot reviewed 82 out of 82 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
packages/create-typink/src/utils/options.ts Adds network selection prompts and validation logic
packages/create-typink/src/utils/networks.ts Implements network configuration generation for templates
packages/create-typink/src/tasks/copyTemplateFiles.ts Adds network placeholder replacement functionality
Multiple template files Standardizes imports, adds ESLint configs, updates dependencies
.github/workflows/create-typink-template-tests.yml Updates CI to test network selection functionality

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@1cedrus 1cedrus requested a review from sinzii September 8, 2025 09:37
@@ -18,6 +18,7 @@ export function renderHelpMessage() {
console.log(` ${chalk.bold.blue('Options:')}
${chalk.gray('-n, --name')} Project name
${chalk.gray('-t, --template')} Template {inkVersion}-{walletConnector}-{ui} [inkVersion: <legacy|v6>, walletConnector: <typink|subconnectv2|talisman>, ui: <nextjs|vite>] (e.g. legacy-typink-vite)
Copy link
Member

Choose a reason for hiding this comment

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

We should generally improve this, the instruction here is a bit confusing for people. Maybe simplify this and have a list of template name below for people to pick.

"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"eslint": "^8.57.1",
Copy link
Member

Choose a reason for hiding this comment

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

We should bump vite & eslint and related packages to latest version.

Copy link
Member

@sinzii sinzii left a comment

Choose a reason for hiding this comment

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

Looking good to me generally, 2 things we can do to improve this but can be done in a different PR. Merging this for now since it's already too big.

@sinzii sinzii merged commit 199cbd8 into main Sep 10, 2025
4 checks passed
@sinzii sinzii deleted the feature/network-selection branch September 10, 2025 15:53
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