@ijuantm/simpl-addon
v2.0.0
Published
CLI tool to install Simpl framework add-ons.
Maintainers
Readme
Simpl Add-on Installer
CLI tool for installing Simpl framework add-ons automatically using npx.
Usage
List Available Add-ons
npx @ijuantm/simpl-addon --listInstall an Add-on
Navigate to your Simpl project directory and run the following command. For example, to install the "auth" add-on:
npx @ijuantm/simpl-addon authThe installer will:
- Download the add-on
- Copy new files to your project
- Merge existing files using markers
Get Help
npx @ijuantm/simpl-addon --helpHow It Works
The installer uses special markers in add-on files to safely merge content:
// @addon-insert:after('existing line')
new AuthController();
// @addon-endSupported Markers:
@addon-insert:after('text')- Insert content after matching line@addon-insert:before('text')- Insert content before matching line@addon-insert:prepend- Add content at the beginning of the file@addon-insert:append- Add content at the end of the file
The installer:
- Creates new files that don't exist
- Merges files with markers automatically
- Skips files without markers (no overwriting)
- Detects duplicate content (won't add twice)
Requirements
- Node.js: >= 20.x.x
- Simpl Framework: A (preferably clean) installation of Simpl, if not clean, some manual merging may be required, or the installer may skip files or break things (you have been warned).
