Skip to content

feat: create-commandkit typescript template#57

Merged
notunderctrl merged 6 commits intoneplextech:masterfrom
coltasa:master
Feb 2, 2024
Merged

feat: create-commandkit typescript template#57
notunderctrl merged 6 commits intoneplextech:masterfrom
coltasa:master

Conversation

@coltasa
Copy link
Contributor

@coltasa coltasa 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.

@vercel
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

@coltasa
Copy link
Contributor Author

coltasa commented Feb 1, 2024

@notunderctrl

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
Member

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 neplextech:master Feb 2, 2024
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