Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
quasseldroid-landing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
Janne Mareike Koschinski
quasseldroid-landing
Commits
3365fc66
Commit
3365fc66
authored
7 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
Improved assets
parent
8b108565
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
assets/css/Makefile
+10
-0
10 additions, 0 deletions
assets/css/Makefile
assets/css/generate_makefile.sh
+39
-0
39 additions, 0 deletions
assets/css/generate_makefile.sh
package.json
+3
-3
3 additions, 3 deletions
package.json
with
52 additions
and
3 deletions
assets/css/Makefile
0 → 100644
+
10
−
0
View file @
3365fc66
SASS
=
$(
shell
pwd
)
/../../node_modules/node-sass/bin/node-sass
--output-style
compressed
all
:
fonts.css style.css important.css semantic.css
fonts.css
:
fonts.sass
$(
SASS
)
fonts.sass
-o
.
style.css
:
style.sass
$(
SASS
)
style.sass
-o
.
important.css
:
important.scss
$(
SASS
)
important.scss
-o
.
semantic.css
:
semantic.scss
$(
SASS
)
semantic.scss
-o
.
This diff is collapsed.
Click to expand it.
assets/css/generate_makefile.sh
0 → 100755
+
39
−
0
View file @
3365fc66
#!/bin/bash
QUALITY
=
85
THUMB_QUALITY_PNG
=
70
THUMB_QUALITY_JPG
=
50
cd
$(
dirname
$(
realpath
-s
${
0
}
))
RULES
=()
function
generate_rule
()
{
file
=
${
1
}
filename
=
${
2
}
RULES+
=(
"
${
filename
}
.css"
)
echo
"
${
filename
}
.css:
${
file
}
"
>>
Makefile.wip
echo
"
\$
(SASS)
${
file
}
-o ."
>>
Makefile.wip
}
function
finalize
()
{
echo
-n
"all:"
>>
Makefile
for
rule
in
"
${
RULES
[@]
}
"
;
do
echo
-n
"
$rule
"
>>
Makefile
done
echo
>>
Makefile
cat
Makefile.wip
>>
Makefile
rm
Makefile.wip
}
cat
<<
EOF
> Makefile
SASS =
\$
(shell pwd)/../../node_modules/node-sass/bin/node-sass --output-style compressed
EOF
for
file
in
*
.sass
;
do
generate_rule
${
file
}
${
file
%.*
}
done
for
file
in
*
.scss
;
do
generate_rule
${
file
}
${
file
%.*
}
done
finalize
\ No newline at end of file
This diff is collapsed.
Click to expand it.
package.json
+
3
−
3
View file @
3365fc66
...
@@ -4,9 +4,9 @@
...
@@ -4,9 +4,9 @@
"description"
:
"This is a websearch frontend for a quassel database."
,
"description"
:
"This is a websearch frontend for a quassel database."
,
"scripts"
:
{
"scripts"
:
{
"pug"
:
"node_modules/pug-cli/index.js --basedir . **/index.pug index.pug"
,
"pug"
:
"node_modules/pug-cli/index.js --basedir . **/index.pug index.pug"
,
"sass"
:
"
node_modules/node-sass/bin/node-sass assets/css/ -o assets/css/ --output-style compressed
"
,
"sass"
:
"
assets/css/generate_makefile.sh && cd assets/css && make
"
,
"
asset
s"
:
"assets/images/generate_makefile.sh && cd assets/images && make"
,
"
image
s"
:
"assets/images/generate_makefile.sh && cd assets/images && make"
,
"build"
:
"npm run
asset
s && npm run sass && npm run pug"
"build"
:
"npm run
image
s && npm run sass && npm run pug"
},
},
"author"
:
"Janne Koschinski"
,
"author"
:
"Janne Koschinski"
,
"license"
:
"GPL"
,
"license"
:
"GPL"
,
...
...
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