From 6f5047ddbb224240be8b3764345e6a13f5bf85f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Wed, 16 Sep 2020 23:02:07 -0300 Subject: [PATCH] Add Yarn build script that builds CSS and JS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MaurĂ­cio Meneghini Fauth --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index acfbc53b40..aa8bdd0f20 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,8 @@ "lodash": "^4.17.19" }, "scripts": { - "postinstall": "yarn run --silent css-compile --quiet --style=compressed && yarn run --silent js-compile --quiet", + "postinstall": "yarn run build", + "build": "yarn run css-compile --style=compressed && yarn run js-compile", "css-compile": "sass themes/pmahomme/scss:themes/pmahomme/css themes/original/scss:themes/original/css themes/metro/scss:themes/metro/css themes/bootstrap/scss:themes/bootstrap/css", "css-lint": "stylelint --syntax scss \"themes/**/scss/*.scss\"", "js-lint": "eslint js/src",