Add rtlcss script command
yarn run css-rtl Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
parent
a30f7643bc
commit
8f0f1997c1
3
.rtlcssrc.json
Normal file
3
.rtlcssrc.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"map": true
|
||||
}
|
||||
@ -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"
|
||||
}
|
||||
|
||||
@ -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 %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user