Repository navigation
Add --prefix to tinker new, default app - #285
Merged
Merged
Conversation
The prefix starts the selectors of the app: the root component's is <prefix>-app. It is stored in package.json under tinker.prefix, for the generators that follow. A prefix must be lower case letters and digits, starting with a letter. Claude-Session: https://claude.ai/code/session_012n355ADp2pgcyRiVe7dqhC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Public API
Added
tinker new <name> --prefix <prefix>: the prefix of the app's component selectors. Defaultapp.package.jsonhas"tinker": { "prefix": "<prefix>" }, for the generators that follow.Removed
Changed
<prefix>-app(with the default,app-app), and so is its element inindex.html. Before, it wastk-app.createApp(name, parent, prefix)in the CLI takes a prefix, which defaults toapp.Summary
package.json, so the generators can read it later.docs/cli.mddocuments the option.Not included
app-app, which may not be wanted. A<prefix>-rootname, or a different default, is open.Checks
npm run lintnpm run typechecknpm run build(the compiler, the CLI and the example app)npm test(2841 tests, including the repo-map check)npm run coverage(100% lines and branches)The repo maps are regenerated. The generated
api-reference.jsonis not committed.Generated by Claude Code