A Node.js TypeScript starter repository, featuring TypeScript for strong typing, Jest for testing, and automatic code formatting with Prettier at commit time.
- TypeScript for application logic, ensuring type safety and developer productivity.
- Jest for unit testing, with examples to get you started on testing your application logic.
- Prettier integration for consistent code formatting, automatically applied before commit.
- Husky and lint-staged for ensuring code quality and formatting standards are met pre-commit.
- Node.js (v20 or newer recommended)
- npm (v10 or newer)
- Clone the repository:
git clone https://github.com/yourusername/dapp-feb24.git
cd dapp-feb24
- Install dependencies
npm ci
npm run dev
Run the tests to ensure everything is set up correctly:
npm test
Code formatting is automatically handled by Prettier upon commit. To manually format your code, run:
npm test
This project uses Husky to run lint-staged before each commit, ensuring that your code is automatically formatted. To set up Husky, run:
npx husky install
npx husky add .husky/pre-commit "npx lint-staged"
Contributions are welcome! Please feel free to submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.