A simple code template for TypeScript developing.
use:
tsdownfor file compiling.tsxfor file execution and content change monitoring.ESLintfor code formatting and linting. And also use my personaleslint-configfor linting rules.- Auto GitHub workflows for new version.
Vitestfor unit testing.
You need to change some things before you start coding:
README.mdfile.- Change the
name,version,description,author,license,homepage,keywords,repositoryinfo inpackage.jsonfile. - Change the license info in
LICENSEfile. - If you don't want to use GitHub workflow, delete the
.githubfolder. - Start coding in
srcandtestfolder. - If you want to publish your package to npm, you need to add a
prepackscript inpackage.jsonfile. For example:
{
"scripts": {
"prepack": "<your prepack script, e.g. pnpm run build>"
}
}