-
-
Notifications
You must be signed in to change notification settings - Fork 7
File Structure
Contains workflow files for Github actions and github configuration
Cypress is an End-to-End testing framework. The cypress folder contains the test files (*.spec.ts)
Automatically generated folder by Create-React-App to contain assets and files outside of the React scope. Contains the files for SEO validation, PWA assets, and sitemap.
Pokemon images, Badge images, box wallpapers
Globally used styles
SVG files, should not have any global class names
Components that can be reused and don't contain any business logic. Should include a *.test.tsx unit test (Made with React-Testing-Library)
React components. Every folder contains the following files:
React component file. Should contain an interface indicating the props received.
Structure:
import React from 'react';
import styles from './ComponentName.module.scss';
const ComponentName: React.FC = () => {
return (
<div></div>
)
};
export default ComponentName;
CSS module SASS file
If the component has subelements that only pertain to that component it may have an elements folder with it's children
Various constants used throughout the app, the inner constant of every file should be referenced with fully capitalized name
Contains all the typescript types for the project
Globally used React hooks
Zustand store - contains all actions and global app state
- .eslintrc.json - Linting
- .prettierrc - Formatting
- DockerFile - Docker
- tsconfig.json - Typescript
- cypress.json - Cypress