-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd3f768
commit 83cb7b2
Showing
21 changed files
with
118 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/vendor/ | ||
/node_modules/ | ||
/public/ | ||
/vendor/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/usr/bin/env sh | ||
|
||
cd "$(dirname "$0")/.." || exit 1 | ||
|
||
compile_font() { | ||
font_name=$1 | ||
font_styles=$2 | ||
css_filename="public/css/font/${font_name}.css" | ||
|
||
css_files='' | ||
for font_style in ${font_styles}; do | ||
css_files="${css_files} ${font_style}.css" | ||
filename="${font_name}-all-${font_style}" | ||
$(echo "${font_style}" | grep - > /dev/null) || filename="${filename}-normal" | ||
filename="${filename}.woff" | ||
cp "node_modules/@fontsource/${font_name}/files/${filename}" public/css/font/files | ||
done | ||
{ | ||
cd "node_modules/@fontsource/${font_name}/" | ||
cat ${css_files} | ||
cd - | ||
} > "${css_filename}" | ||
|
||
for fontFile in $(cat "${css_filename}" | grep url | awk -F "'" '{print $2}'); do | ||
cp "node_modules/@fontsource/${font_name}/${fontFile}" public/css/font/files | ||
done | ||
} | ||
|
||
if [ ! -d './vendor' -o ! -d './node_modules' ]; then | ||
./bin/install | ||
fi | ||
|
||
./bin/clean | ||
|
||
cp -r src public | ||
gzip -c public/sitemap.xml > public/sitemap.xml.gz | ||
cp -pr ./node_modules/startbootstrap-freelancer/ public/ | ||
|
||
mkdir -p public/css/font/files | ||
|
||
compile_font 'montserrat' '100 400 600' | ||
|
||
compile_font 'lato' '300 400 700 300-italic 400-italic 700-italic' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env sh | ||
|
||
cd "$(dirname "$0")/.." || exit 1 | ||
|
||
rm -rf ./public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env sh | ||
|
||
cd "$(dirname "$0")/.." || exit 1 | ||
|
||
|
||
if $(command -v docker-compose > /dev/null); then | ||
composer_cmd="./bin/composer" | ||
npm_cmd="./bin/npm" | ||
elif $(command -v composer > /dev/null && command -v npm > /dev/null); then | ||
composer_cmd='composer' | ||
npm_cmd='npm' | ||
else | ||
echo 'docker-compose is require' | ||
fi | ||
|
||
${composer_cmd} install | ||
${npm_cmd} i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule startbootstrap-freelancer
deleted from
77e2ce
Binary file not shown.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.