Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial atomic component and Jest setup. (#2)
* Initial NextJS commit. Setup NextJS application using TypeScript and App Router. Cleaned up boilerplate code. Installed material UI. Setup strict tsconfig. Updated package.json dev script to use port 8080. Updated README. * Initial atomic component. Added required packages, emotion/cache, @mui/material. Created initial atomic component for textual elements. Updated tsconfig. - Updated jsx value to react-jsx. - Added baseUrl. - Included dist in exclude. * Resolve module not found build error. - Updated next.config.mjs to resolve '@components' alias in webpack. - Created types directory: - Moved TextProps interface to the types directory, declaring it as a module for global access to the TextProps type from the Text component. - Imported the type into the Text component for usage. - Updated tsconfig: - Changed target and module to ESNext for better compatibility and faster builds. - Removed outDir as build files are placed in the .next directory in Next.js projects. - Updated jsx setting to 'preserve', in accordance with automatic fixes from the Next.js compiler. - Simplified include paths. * Initial jest setup. - Adds all required configurations to run npm test script. - Adds passing unit tests with 100% coverage for Text.tsx verifying jest confguration setup. --------- Co-authored-by: Ryan James Meneses <[email protected]>
- Loading branch information