Skip to content

Commit

Permalink
deploy examples to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jaames committed Mar 28, 2022
1 parent e3df59b commit db559b5
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Debug stuff
playdate_usb_captures
# web files
www/**/*

# lockfiles not needed for library
yarn.lock
Expand Down
27 changes: 26 additions & 1 deletion deploy.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1,26 @@
# todo
#!/usr/bin/env sh

# abort on errors
set -e

# build
npm run build

# copy files to www
mkdir -p www
cp -a ./dist/. ./www
cp -a ./examples/. ./www
find ./www -name "*.d.ts" -type f -delete
find ./www -name "*.js.map" -type f -delete
find ./www -empty -type d -delete

# navigate into the build output directory
cd www

# push to gh-pages branch
git init
git add -A
git commit -m 'deploy github pages'
git push -f [email protected]:jaames/pd-usb master:gh-pages

cd -
6 changes: 5 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ JavaScript library for interacting with a [Panic Playdate](http:https://play.date/) co

## Examples

> ⚠️ TODO: list examples
- [Basic Connection](https://jaames.github.io/pd-usb/example-basic.html)
- [Input State Capture](https://jaames.github.io/pd-usb/example-controller.html)
- [Screenshot Capture](https://jaames.github.io/pd-usb/example-screen.html)
- [Send Bitmap](https://jaames.github.io/pd-usb/example-send-bitmap.html)
- [Execute Lua Payload](https://jaames.github.io/pd-usb/example-eval.html)

## Installation

Expand Down

0 comments on commit db559b5

Please sign in to comment.