git clone https://github.com/HcySunYang/template-ts.git
git remote rm origin
git remote add origin {https://github.com/user/repo.git}
- name
- repository
- author
- types
Describe your project
Currently it is the basic configuration, you can modify it according to your needs.
-
yarn dev
for dev -
yarn build
for build -
yarn test
for tests- write test files in the
tests
folder ((\\.|/)(test|spec))\\.tsx?$
- writing dts tests in the
test-dts
folder
- write test files in the
-
yarn commit
for commit -
yarn changelog
generate changelog - pre-commit hook & lint-staged
- format on save when using vscode(
prettier
) - integrate github action(only work on the
main
branch) -
yarn release
for releasing your package-
--dry
dry run -
--skipTests
skip tests -
--skipBuild
skip build -
--preId
specify pre-release preid:yarn release --preId alpha
- You can specify the version:
yarn release [version]
-