Add rtlcss script command

yarn run css-rtl

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2020-12-22 00:09:19 -03:00
parent a30f7643bc
commit 8f0f1997c1
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8
3 changed files with 6 additions and 2 deletions

3
.rtlcssrc.json Normal file
View File

@ -0,0 +1,3 @@
{
"map": true
}

View File

@ -57,9 +57,10 @@
},
"scripts": {
"postinstall": "yarn run build",
"build": "yarn run css-compile --style=compressed && yarn run js-compile",
"build": "yarn run css-compile --style=compressed && yarn run css-rtl && 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\"",
"css-rtl": "find themes/*/css/*theme.css -exec yarn run rtlcss -c .rtlcssrc.json {} \\;",
"js-lint": "eslint js/src",
"js-compile": "babel js/src -d js/dist"
}

View File

@ -19,7 +19,7 @@
<link rel="stylesheet" type="text/css" href="{{ base_dir }}js/vendor/codemirror/lib/codemirror.css?{{ version }}">
<link rel="stylesheet" type="text/css" href="{{ base_dir }}js/vendor/codemirror/addon/hint/show-hint.css?{{ version }}">
<link rel="stylesheet" type="text/css" href="{{ base_dir }}js/vendor/codemirror/addon/lint/lint.css?{{ version }}">
<link rel="stylesheet" type="text/css" href="{{ theme_path }}/css/theme{{ text_dir == 'rtl' ? '-rtl' }}.css?{{ version }}&nocache=
<link rel="stylesheet" type="text/css" href="{{ theme_path }}/css/theme{{ text_dir == 'rtl' ? '.rtl' }}.css?{{ version }}&nocache=
{{- unique_value }}{{ text_dir }}{% if server is not empty %}&server={{ server }}{% endif %}">
<link rel="stylesheet" type="text/css" href="{{ theme_path }}/css/printview.css?{{ version }}" media="print" id="printcss">
{% endif %}