cra-template-comp6080-typescript
v0.1.0
Published
This is a template in typescript for COMP6080 at UNSW, which is based on the official typescript template of create-react-app.
Maintainers
Readme
CRA Template for COMP6080
A custom Create React App template designed for COMP6080 course.
✨ Features
- Pre-configured TypeScript support
- Integrated testing suite (Jest + React Testing Library)
- React Router v6 for routing
- Code quality tools:
- Prettier - Code formatting
- ESLint - Code linting
- Husky - Git hooks management
- lint-staged - Staged files checking
🚀 Quick Start
Create a new project with:
npx create-react-app my-app --template comp6080-typescript📦 Available Scripts
# Start development server
npm start
# Run tests
npm test
# Build for production
npm run build🔧 Project Structure
my-app/
├── public/ # Static assets
│ ├── index.html # HTML template
│ └── favicon.ico # Website icon
├── src/ # Source code
│ ├── components/ # Reusable components
│ │ └── Footer.tsx
│ ├── pages/ # Page components
│ │ ├── About.tsx
│ │ └── Home.tsx
│ ├── styles/ # Styled components & themes
│ ├── App.tsx # Application entry
│ └── index.tsx # Render entry
├── package.json # Project configuration
├── tsconfig.json # TypeScript configuration
├── .eslintrc.js # ESLint configuration
└── .prettierrc # Prettier configuration
## 📝 License
MIT © [Snowden Fu](https://github.com/snowden-fu)