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
51df7459
Commit
51df7459
authored
7 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
Updated pug to also use make
parent
3365fc66
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Makefile
+8
-0
8 additions, 0 deletions
Makefile
assets/css/generate_makefile.sh
+0
-3
0 additions, 3 deletions
assets/css/generate_makefile.sh
generate_makefile.sh
+36
-0
36 additions, 0 deletions
generate_makefile.sh
package.json
+1
-1
1 addition, 1 deletion
package.json
with
45 additions
and
4 deletions
Makefile
0 → 100644
+
8
−
0
View file @
51df7459
PUG
=
$(
shell
pwd
)
/node_modules/pug-cli/index.js
--basedir
.
all
:
index.html privacy-policy/index.html releases/index.html
index.html
:
index.pug
$(
PUG
)
index.pug
privacy-policy/index.html
:
privacy-policy/index.pug
$(
PUG
)
privacy-policy/index.pug
releases/index.html
:
releases/index.pug
$(
PUG
)
releases/index.pug
This diff is collapsed.
Click to expand it.
assets/css/generate_makefile.sh
+
0
−
3
View file @
51df7459
#!/bin/bash
QUALITY
=
85
THUMB_QUALITY_PNG
=
70
THUMB_QUALITY_JPG
=
50
cd
$(
dirname
$(
realpath
-s
${
0
}
))
...
...
This diff is collapsed.
Click to expand it.
generate_makefile.sh
0 → 100755
+
36
−
0
View file @
51df7459
#!/bin/bash
cd
$(
dirname
$(
realpath
-s
${
0
}
))
RULES
=()
function
generate_rule
()
{
file
=
${
1
}
filename
=
${
2
}
RULES+
=(
"
${
filename
}
.html"
)
echo
"
${
filename
}
.html:
${
file
}
"
>>
Makefile.wip
echo
"
\$
(PUG)
${
file
}
"
>>
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
PUG =
\$
(shell pwd)/node_modules/pug-cli/index.js --basedir .
EOF
for
file
in
*
.pug
**
/
*
.pug
;
do
filename
=
${
file
##*/
}
if
[[
${
filename
}
!=
_
*
]]
;
then
generate_rule
${
file
}
${
file
%.*
}
fi
done
finalize
\ No newline at end of file
This diff is collapsed.
Click to expand it.
package.json
+
1
−
1
View file @
51df7459
...
...
@@ -3,7 +3,7 @@
"version"
:
"3.0.0"
,
"description"
:
"This is a websearch frontend for a quassel database."
,
"scripts"
:
{
"pug"
:
"
node_modules/pug-cli/index.js --basedir . **/index.pug index.pug
"
,
"pug"
:
"
./generate_makefile.sh && make
"
,
"sass"
:
"assets/css/generate_makefile.sh && cd assets/css && make"
,
"images"
:
"assets/images/generate_makefile.sh && cd assets/images && make"
,
"build"
:
"npm run images && npm run sass && npm run pug"
...
...
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