Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
8db4f7af
Commit
8db4f7af
authored
12 years ago
by
gnaegi
Browse files
Options
Downloads
Patches
Plain Diff
OO-253 optimize sass compile script for default theme and custom theme compilation
parent
b92ff43d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/webapp/static/themes/compiletheme.sh
+16
-4
16 additions, 4 deletions
src/main/webapp/static/themes/compiletheme.sh
with
16 additions
and
4 deletions
src/main/webapp/static/themes/compiletheme.sh
+
16
−
4
View file @
8db4f7af
#!/bin/sh
#
# compilescript for openolat-SASS-theme
# can be included into eclipse-project-build (project-properties --> "Builders")
# Compilescript for openolat-SASS-theme
# Can be included into eclipse-project-build (project-properties --> "Builders")
#
# It compiles the whole directory and mostly all changed files.
# In the case it does not compile all files, it's helpful to delete the sass-cache (rm -r .sass-cache).
#
# usage:
# ./compiletheme.sh # compile themes in the current directory
# ./compiletheme.sh /path/to/your/custom/theme # compile themes in the given directory
#
####
style
=
compressed
#style=compact
echo
"compiling SASS:
$1
$style
"
# default to compile the themes in the current directory
directory
=
"."
if
[
!
-z
$1
]
;
then
directory
=
$1
;
fi
echo
"Compiling SASS:
$directory
$style
"
sass
--version
sass
--style
$style
--update
$
1
/layout.scss:
$1
/layout.css
--load-path
openolat openolat/all openolat/all/modules openolat/print openolat/mobile
sass
--style
$style
--update
$
directory
:
$directory
--load-path
openolat openolat/all openolat/all/modules openolat/print openolat/mobile
echo
"done"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment