mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-04-19 12:55:50 +00:00
shitty workaround
This commit is contained in:
parent
c1c16be54a
commit
6f4303f65b
2 changed files with 10 additions and 2 deletions
|
|
@ -4,7 +4,7 @@
|
|||
set -e
|
||||
|
||||
DIR=$(dirname "$0")
|
||||
HARP="$DIR/../node_modules/.bin/harp"
|
||||
HARP="harp"
|
||||
TARGET="${1:-www}"
|
||||
|
||||
function main() {
|
||||
|
|
@ -35,6 +35,14 @@ function munge_html() {
|
|||
mkdir -p "$FILE_DIR"
|
||||
mv "$FILE" "$FILE_DIR/index.html"
|
||||
done
|
||||
|
||||
# stupid harp
|
||||
for FILE in "$TARGET"/projects/mojo.el "$TARGET"/projects/samhuri.net "$TARGET"/projects/cheat.el; do
|
||||
mv "$FILE" "$FILE.tmp"
|
||||
FILE_DIR="${FILE%.html}"
|
||||
mkdir -p "$FILE_DIR"
|
||||
mv "$FILE.tmp" "$FILE_DIR/index.html"
|
||||
done
|
||||
}
|
||||
|
||||
function minify_js() {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
DIR=$(dirname "$0")
|
||||
UGLIFY="$DIR/../node_modules/.bin/uglifyjs"
|
||||
UGLIFY="uglifyjs"
|
||||
|
||||
function minify() {
|
||||
INPUT="$1"
|
||||
|
|
|
|||
Loading…
Reference in a new issue