-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
parcel and github action to build the page
- Loading branch information
1 parent
95467cc
commit e6cd67a
Showing
14 changed files
with
1,451 additions
and
144 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
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,8 @@ | ||
{ | ||
"plugins": { | ||
"posthtml-doctype": { | ||
"doctype": "HTML 5" | ||
}, | ||
"posthtml-include": {} | ||
} | ||
} |
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,15 +1,39 @@ | ||
local: | ||
rm -rf dist | ||
rm -rf out | ||
yarn package | ||
|
||
start: | ||
yarn start | ||
make start-electron & make start-parcel | ||
|
||
start-electron: | ||
yarn run electron-forge start | ||
|
||
start-parcel: | ||
rm -rf dist-parcel | ||
yarn run parcel src/index.html --public-url . --dist-dir dist-parcel | ||
|
||
patch: | ||
yarn version --patch | ||
make magic | ||
|
||
minor: | ||
yarn version --minor | ||
make magic | ||
|
||
magic: | ||
make release | ||
make build-parcel | ||
make magic-electron | ||
|
||
build-parcel: | ||
rm -rf dist-parcel | ||
yarn run parcel build src/index.html --public-url . --dist-dir dist-parcel | ||
|
||
magic-electron: | ||
make build-electron | ||
make upload | ||
|
||
build-electron: | ||
rm -rf dist | ||
rm -rf out | ||
make icons | ||
yarn run electron-builder | ||
|
||
upload: | ||
xcrun altool --validate-app -f ${shell find dist/mas-universal -name "*.pkg" | head -n 1} -u ${APPLE_ID} -p ${APPLE_PASSWORD} --type macos | ||
xcrun altool --upload-app -f ${shell find dist/mas-universal -name "*.pkg" | head -n 1} -u ${APPLE_ID} -p ${APPLE_PASSWORD} --type macos | ||
|
@@ -18,19 +42,16 @@ icons: | |
cp build/[email protected] build/icon.png | ||
cp build/Artwork.png src/favicon.png | ||
|
||
release: | ||
# local | ||
package-electron: | ||
rm -rf dist | ||
rm -rf out | ||
make icons | ||
yarn dist | ||
|
||
patch: | ||
yarn version --patch | ||
make magic | ||
|
||
minor: | ||
yarn version --minor | ||
make magic | ||
yarn run electron-forge package | ||
|
||
# just to create the favicon.ico | ||
icon: | ||
convert -resize x16 -gravity center -crop 16x16+0+0 build/Artwork.png -flatten -colors 256 -background transparent src/favicon.ico | ||
|
||
|
||
#unused | ||
# yarn run electron-builder --dir |
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.
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,20 @@ | ||
<header> | ||
<nav> | ||
<h1> | ||
<a href="/">unixtime.app</a> | ||
</h1> | ||
<a href="story.html">Background Story</a> | ||
<a href="support.html">Support</a> | ||
<a href="https://v01.io/category/v01-software/unixtime-app/" | ||
target="_blank">Blog</a> | ||
<p>©<a href="https://v01.software/" | ||
target="_blank">v01.software</a></p> | ||
<a href="https://v01.io/imprint/" target="_blank">Contact</a> | ||
</nav> | ||
<div id="support"> | ||
<a href="https://apps.apple.com/de/app/unixtime-app/id1627321235?l=en&mt=12" | ||
target="_blank"><img src="./images/mas.svg" /></a> | ||
<a href="https://apps.microsoft.com/store/detail/unixtimeapp/9NXBTRZH3ZQN?hl=de-de&gl=de" | ||
target="_blank"><img src="./images/ms.svg" /></a> | ||
</div> | ||
</header> |
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
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,13 @@ | ||
<meta charset="utf-8" /> | ||
<link rel="manifest" href="manifest.json" /> | ||
<link rel="icon" href="favicon.png" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
|
||
<link rel="stylesheet" href="index.css" /> | ||
<link rel="stylesheet" href="./lib/highlight.js-11.5.1/github-dark.min.css"> | ||
<script type="module"> | ||
const src = "https://unpkg.com/[email protected]/bin/canvaskit.js"; | ||
import(src); | ||
const el = document.createElement('pwa-update'); | ||
document.body.appendChild(el); | ||
</script> |
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
Oops, something went wrong.