From 1972249852d3e4211cb83c14d6e4f7ca558d37e5 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 2 Jan 2018 15:29:53 +0100 Subject: [PATCH] Update README.md (#11) --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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" + ] + } +```