Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add script for compiling e-mails
Anna Siwik6a9d1d1fb81b
diff --git a/.gitignore b/.gitignoreindex 5d60ff0298..8739720352 100644--- a/.gitignore+++ b/.gitignore@@ -28,3 +28,4 @@ dist//static//saleor/static/assets/webpack-bundle.json+/templates/templated_email/html/compiled/diff --git a/package.json b/package.jsonindex b6343f7237..a971bbab41 100644--- a/package.json+++ b/package.json@@ -89,6 +89,7 @@"scripts": {"build-assets": "node ./node_modules/webpack/bin/webpack.js -p --progress","heroku-postbuild": "npm run build-assets",- "start": "UV_THREADPOOL_SIZE=8 node ./node_modules/webpack/bin/webpack.js -d --watch --progress"+ "start": "UV_THREADPOOL_SIZE=8 node ./node_modules/webpack/bin/webpack.js -d --watch --progress",+ "build-emails": "mkdir -p templates/templated_email/html/compiled/ && find templates -name \"*.mjml\" -not -path \"templates/templated_email/html/source/*partials/*\" -not -path \"templates/templated_email/html/source/*shared/*\" -exec ./node_modules/.bin/mjml -l skip {} -o templates/templated_email/html/compiled/ \\;"}}