1.2.0 β€’ Published 3 months ago

@g2x/sparta v1.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

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 folders
    • interfaces: contains all types & interfaces
    • util: contains all utility functions and classes
  • stories: contains all storybook 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

1.2.0

3 months ago

0.1.43

1 year ago