Introduction
LesliAssets is the official frontend asset library for the Lesli Framework.
It centralizes stylesheets, JavaScript modules, images, icons, view partials, and Tailwind build tooling shared by Lesli applications and engines.
Features
- Shared stylesheets, JavaScript modules, images, and icons
- Reusable email and view resources
- Tailwind entrypoint discovery across applications, engines, and gems
- Quiet builds with concise success messages and captured compiler errors
- Development watch mode and minified production builds
Installation
Add LesliAssets to the application:
bundle add lesli_assetsUsage
Build Tailwind stylesheets
LesliAssets discovers files ending in .tailwind.css inside source/tailwind directories and writes their compiled output to the corresponding Rails asset directory.
Run the bundled builder from the Rails application root:
bundle exec ruby "$(bundle show lesli_assets)/bin/build-tailwind" --root .Build minified production assets or start the file watchers:
bundle exec ruby "$(bundle show lesli_assets)/bin/build-tailwind" --root . --minify
bundle exec ruby "$(bundle show lesli_assets)/bin/build-tailwind" --root . --watchTailwind entrypoints
Place Tailwind source files in the application or package source directory:
source/tailwind/application.tailwind.css
The builder preserves the relative filename and writes generated CSS under app/assets/stylesheets. Engine and gem outputs receive a snake-case namespace to avoid collisions.
Development
Clone the repository and install its dependencies:
git clone https://github.com/LesliTech/LesliAssets.git
cd LesliAssets
bundle installTo use local source from a Lesli development workspace, reference it from the host application's Gemfile:
gem "lesli_assets", path: "gems/LesliAssets"Tests
Run the default test task from the LesliAssets directory:
bundle exec rakeDocumentation
Community
License
Copyright (c) 2026, Lesli Technologies, S. A.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
The complete license text is available in the license file.