Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented lerna and button with necessary styles and utils #2

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 53 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,53 @@
# SpaceToStudy-Packages
# SpaceToStudy-Packages

This monorepo manages multiple packages (components, utils, and styles) using Lerna for dependency management and Webpack for bundling and optimization.

## Project structure

<ul>
<li>packages - Monorepo root folder containing all packages
<ul>
<li>/components - Contains reusable UI components
<ul>
<li>/__tests__ - Unit tests for components</li>
<li>/lib - Source code for all components</li>
<li>package.json - Configuration for the components package</li>
</ul>
</li>
<li>/styles - Contains shared styles and SCSS utilities
<ul>
<li>/lib - Source code for styles (SCSS/CSS files)</li>
<li>package.json - Configuration for the styles package</li>
</ul>
</li>
<li>/utils - Shared utility functions for components and other packages
<ul>
<li>/__tests__ - Unit tests for utility functions</li>
<li>/lib - Source code for utility functions</li>
<li>package.json - Configuration for the utils package</li>
</ul>
</li>
</ul>
</li>
</ul>

## Installation

1. **Clone the repository:**

git clone <repository-url>
cd <repository-directory>

2. **Install dependencies**

npm install

## Adding a new package

npx lerna create <package-name>

## Adding a dependency to a package

cd packages/<package-name>
npm install <dependency-name>

4 changes: 4 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "0.0.1"
}
Loading