This repository serves as a template for TypeScript projects, providing a basic setup with Jest for unit testing, Prettier for code formatting, and ESLint for linting.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Node.js (v14 or newer recommended)
- Yarn
git clone https://github.com/nicklloyd/ts-boilerplate.git my-project
cd my-project
yarn
yarn test
To start fresh with your own version control history, remove the existing .git directory:
rm -rf .git
git init
Add all the files in your new project directory to the repository:
git add .
Go to GitHub and create a new repository. Do not initialize the repository with a README, .gitignore, or license since your project already includes these files.
Replace your-username
with your GitHub username and your-repository
with the name of your new repository. Then, add the GitHub repository as a remote to your project:
git remote add origin https://github.com/your-username/your-repository.git
Push your commits to the new GitHub repository:
For the main branch:
git push -u origin main
At this point, you've successfully created a new project from the template and started your own Git repository. You can now start developing your project.
Remember to update the project's README.md
and other documentation to reflect your project's name and specifics.