cron-eu / neos-monoclepreviewsite
Installs: 416
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Type:neos-site
Requires
- sitegeist/monocle: ^7.5
README
This is simply an empty neos-site to be able to preview monocle styleguides provided in neos-packages.
Just require this package and you get:
- Monocle dependency installed
- Styleguides from your neos-packages rendered (else you get an exception about a missing site)
- A routing from "/" to the monocle preview backend
Some pieces of this might be obsoleted in later versions of Monocle. See:
Usage in CI
You have a frontend neos-package and want to use Monocle in CI, this might help to get you started (instead of creating a dummy "base distribution").
Your package doesn't even need to require Monocle (as you won't need it in production anyway):
{ "name": "vendor/your-frontend-package", "type": "neos-package", "require": { "neos/neos": "^4.3", "neos/fusion-afx": "^1.4", "packagefactory/atomicfusion-proptypes": "^1.3" }, ... "scripts": { "post-cmds": [ "Neos\\Flow\\Composer\\InstallerScripts::postUpdateAndInstall", "rm -rf Packages/Application/CRON.DavPtaheute.Frontend && mkdir -p Packages/Application/ && ln -s ../../ Packages/Application/CRON.DavPtaheute.Frontend" ], "post-update-cmd": "@post-cmds", "post-install-cmd": "@post-cmds", "post-package-update": "Neos\\Flow\\Composer\\InstallerScripts::postPackageUpdateAndInstall", "post-package-install": "Neos\\Flow\\Composer\\InstallerScripts::postPackageUpdateAndInstall" } }
Now you can do this in CI:
composer require "cron/neos-monoclepreviewsite"
And you will get a fully working Monocle installation ready to use.