Skip to content

Commit

Permalink
Add Yarn build script that builds CSS and JS
Browse files Browse the repository at this point in the history
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
  • Loading branch information
MauricioFauth committed Nov 11, 2020
1 parent 69c9a96 commit 6f5047d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -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",
Expand Down

0 comments on commit 6f5047d

Please sign in to comment.