Skip to content

Commit

Permalink
refactor: sample website use vercel.app deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
SolidZORO committed Oct 8, 2020
1 parent e3f2972 commit 4d370ea
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -4,7 +4,7 @@
<img src="./docs/assets/images/zpix_review@2x.png?v=2020-2" width="800" />
<br>
<br>
📍<a href="https://SolidZORO.github.io/zpix-pixel-font" target="_blank">Online Review Zpix Sample</a>
📍<a href="https://zpix.vercel.app" target="_blank">Zpix Online Sample (vercel.app)</a>
<br>
</p>

Expand Down
Binary file modified dist/Zpix.ttf
Binary file not shown.
3 changes: 0 additions & 3 deletions docs/zpix.woff2

This file was deleted.

2 changes: 1 addition & 1 deletion tools/build.sh
Expand Up @@ -8,7 +8,7 @@ java -jar ./bin/BitsNPicas.jar convertbitmap -f ttf -o ./zpix.ttf ../src/zpix.sf
# minify has a bug for web, OTS parsing error: OS/2: Failed to parse table
# so I'm going to convert woff2 here
# `ttf2woff2` is a npm module, RUN `npm i -g ttf2woff2` install
cat < ./zpix.ttf | ttf2woff2 > ../docs/zpix.woff2
cat < ./zpix.ttf | ttf2woff2 > ../website/zpix.woff2

./minify.py
mv -f ./zpix.ttf ../dist/zpix.ttf
Expand Down
1 change: 1 addition & 0 deletions website/.gitignore
@@ -0,0 +1 @@
.vercel
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions website/deploy.sh
@@ -0,0 +1,5 @@
#! /bin/bash

cd "$(dirname "$0")" || exit

vercel --prod
File renamed without changes.
6 changes: 6 additions & 0 deletions website/vercel.json
@@ -0,0 +1,6 @@
{
"name": "zpix",
"version": 2,
"env": { "NODE_ENV": "production" },
"builds": [{ "src": "**", "use": "@now/static" }]
}
Binary file added website/zpix.woff2
Binary file not shown.

0 comments on commit 4d370ea

Please sign in to comment.