1.2.0 β’ Published 3 months ago
@g2x/sparta v1.2.0
Sparta is a React UI/UX component library primarily developed by G2X with an emphasis on productivity and ease of use. This package uses TSDX for development, and extends the use of packages like React Hook Form, and others for the purpose of providing a complete development experience.
π Getting Started
Here is a quick setup of what you need to do to start contributing in Sparta.
# Install Node.js
sudo apt-get install -y nodejs
# Clone repo
git clone https://github.com/MileMarker10/sparta sparta
# Run the setup script (One time command to install deps and husky)
yarn setup
# (Optional) run Storybook
yarn storybook
# (Optional) run Rollup TypeScript compiler
yarn start
File Structure
To help guide your way around the repo, here is a quick breakdown of the file structure.
example
: contains a test application for integration testing components post-distribution processing.src
: contains all source code including components and utilities.components
: contains all component foldersinterfaces
: contains all types & interfacesutil
: contains all utility functions and classes
stories
: contains allstorybook
files for each component.test
: contains all unit testing done through Jest and@testing-library
.
Breakdown
sparta
ββββexample
β ββββTesting environment for component implementation
β
ββββsrc
β ββββ*components*
β β ββββComponent folders
β β ββββ*components* contains abstracted components
β β ββββ*overload* contains overloaded components
β β ββββComponent Files
β β
β ββββ*interfaces*
β β ββββTypes and interfaces
β β
β ββββ*util*
β ββββUtility classes and functions
β
ββββstories
β ββββStorybook testing files
β
ββββtest
ββββJest testing files
π€ Have suggestions?
Feel free to use the Issues tab on the repo to voice any questions or concerns about the codebase.
Documentation
Coming soon