diff --git a/README.md b/README.md index 400e2fe..99c8026 100644 --- a/README.md +++ b/README.md @@ -31,3 +31,21 @@ TYPO3: ## MJML Documentation https://mjml.io/documentation/ + +## Usage in your distribution + +To automate the installation of the npm packages, you could add the following lines to your composer.json + +``` + "scripts": { + "post-install-cmd": [ + "cd web/typo3conf/ext/mjml && npm prune --production" + ], + "post-update-cmd": [ + "cd web/typo3conf/ext/mjml && npm prune --production" + ], + "pre-deploy": [ + "cd web/typo3conf/ext/mjml && npm prune --production" + ] + } +```