Welcome in the Lotsof monorepo.
Here you can get access to all the packages developed by our team. Things like:
Lit Element TS
Base class on top of the wonderful Lit library that add some features like mountWhen, etc...
Fully customizable advanced select element with built-in search and more...
Fully customizable and easy to use element to display form based on the json-schema standard.
Lotsof CLI SH
Useful CLI that allows you to use all our tools quickly and efficiently.
Factory TS/PHP
All in one components development UI supporting Blade, Twig, React, Vue, and more...
I18n TS
Simple but complete i18n library for your JS projects. It is used inside our tools like elements, etc...
Sugar TS/PHP
Useful toolbox that gives you access to nice functions like:
querySelectorLive: Live version of thequerySelectorfunctionwhenInViewport: Promise based in viewport detectiononScrollEnd: Do something when scroll as reached the end- And many many many more to discover...
SugarCSS CSS
Lightningcss plugin based on variables that gives you a ton of features like:
:root {
--s-color-accent: #ff0000;
--s-share-border: --alpha 0.2;
}
h1 {
color: s-color(accent, --darken 20 --alpha 0.1);
}
h2 {
color: s-color(accent, border);
}:root {
--s-media-mobile: 0, 768px;
--s-media-tablet: 769px, 1024px;
--s-media-desktop: 1025px;
--s-media-wide: 1440px;
}
h1 {
color: red;
@media desktop {
color: green;
}
}And a lot more like: Font management, Spaces management, Easing management, etc...
Types TS/PHP
The types package gives you access to a multiple of pre-made data types to be used as base for your own types or as is like:
export type TBody = {
suptitle?: string;
title?: string;
subtitle?: string;
lead?: string;
text?: string;
buttons?: any[];
titleLevel?: number;
subtitleLevel?: number;
suptitleLevel?: number;
};export type TLink = {
href?: string;
text?: string;
title?: string;
target?: '_blank' | '_self';
class?: string;
noopener?: boolean;
noreferrer?: boolean;
ariaLabel?: string;
};export type TButton = {
style?: 'solid' | 'outline' | 'text';
class?: string;
link?: __LinkType;
};And a lot more like TCard, THero, TImage, etc...
All these types are available in
TSas well as inPHPfor convinience.
- Node:
^20.0.0 - PHP:
^8.0.0
To clone this monorepo, make use of this command:
git clone https://github.com/lotsofdev/monorepo.gitTo install the repository, simple launch:
npm iThis will install all the dependencies (nodes and php) for all the packages.
To develop in this monorepo, you have 2 solutions:
You can launch the development process in all the packages at once using this command from the monorepo root directory:
npm run devNote that this will not launch the development process in the packages prefixed by website- or wordpress-
You can also if you prefer, launch the same command into any package folder to launch the development process in this specific package only:
cd packages/sugar && npm run devTo contribute, follow these guidelines.
This project is meant to be open. In that regard, everyone is welcome to contribute to it. The only requirement is that you follow our code of conduct