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

feat: create-commandkit typescript template #57

Merged
merged 6 commits into from
Feb 2, 2024
Merged

feat: create-commandkit typescript template #57

merged 6 commits into from
Feb 2, 2024

Conversation

NotM1Dev
Copy link
Contributor

@NotM1Dev NotM1Dev commented Feb 1, 2024

Summary

This pull request adds a TypeScript template to create-commandkit, allowing users to use TypeScript for their project instead of JavaScript.

Preview

image

Other Changes

  • Added the --noEmit flag to create-commandkit's lint script, for consistency and to ensure no files are emitted.
  • Formatted the CommandKit package.

Copy link

vercel bot commented Feb 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
commandkit-docs ❌ Failed (Inspect) Feb 2, 2024 7:05am

@NotM1Dev
Copy link
Contributor Author

NotM1Dev commented Feb 1, 2024

@notunderctrl

};

export const commands = {
init: {
npm: 'npm init -y',
yarn: 'yarn init -y; yarn config set nodeLinker node-modules',
yarn: 'yarn init -y; yarn config set nodeLinker node-modules; yarn set version stable',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
yarn: 'yarn init -y; yarn config set nodeLinker node-modules; yarn set version stable',
yarn: 'yarn init -2; yarn config set nodeLinker node-modules;',

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@twlite

  • Using yarn init -2 creates a bunch of useless files (some of them are created by create-commandkit), including a .pnp.cjs file
  • Using yarn init -y; yarn config set nodeLinker node-modules will not create the extra files and will work as expected
image

@notunderctrl notunderctrl merged commit d226d2f into underctrl-io:master Feb 2, 2024
1 check failed
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.

3 participants