Merge pull request #16359 from mauriciofauth/create-release-yarn

Add Yarn build script that builds CSS and JS
This commit is contained in:
Maurício Meneghini Fauth 2020-11-11 19:55:52 -03:00 committed by GitHub
commit 3e76383905
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",