Commit
…umps/boardgame.io into jorbascrumps/feat/phase-next-fn
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
<!DOCTYPE html><html><head><style>body{padding:20px}.msg{position:absolute;bottom:0;left:20px;color:#aaa;font-size:12px;margin-bottom:20px}</style></head><body> <div class="msg">interactive (not an image)</div> <div id="app"></div> <script type="text/javascript" src="/documentation/snippets/example-1.c00bf6c8.js"></script> | ||
</body></html> | ||
<!DOCTYPE html><html><head><style>body{padding:20px}.msg{position:absolute;bottom:0;left:20px;color:#aaa;font-size:12px;margin-bottom:20px}</style></head><body> <div class="msg">interactive (not an image)</div> <div id="app"></div> <script type="text/javascript" src="/documentation/snippets/example-1.46f74a00.js"></script> </body></html> |
This file was deleted.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
<!DOCTYPE html><html><head><style>body{padding:20px}.msg{position:absolute;bottom:0;left:20px;color:#aaa;font-size:12px;margin-bottom:20px}</style></head><body> <div class="msg">interactive (not an image)</div> <div id="app"></div> <script type="text/javascript" src="/documentation/snippets/example-2.5076e8bb.js"></script> | ||
</body></html> | ||
<!DOCTYPE html><html><head><style>body{padding:20px}.msg{position:absolute;bottom:0;left:20px;color:#aaa;font-size:12px;margin-bottom:20px}</style></head><body> <div class="msg">interactive (not an image)</div> <div id="app"></div> <script type="text/javascript" src="/documentation/snippets/example-2.5f113740.js"></script> </body></html> |
This file was deleted.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
<!DOCTYPE html><html><head><style>body{padding:20px}.msg{position:absolute;bottom:0;left:20px;color:#aaa;font-size:12px;margin-bottom:20px}</style></head><body> <div class="msg">interactive (not an image)</div> <div id="app"></div> <script type="text/javascript" src="/documentation/snippets/example-3.1a5b9fe4.js"></script> | ||
</body></html> | ||
<!DOCTYPE html><html><head><style>body{padding:20px}.msg{position:absolute;bottom:0;left:20px;color:#aaa;font-size:12px;margin-bottom:20px}</style></head><body> <div class="msg">interactive (not an image)</div> <div id="app"></div> <script type="text/javascript" src="/documentation/snippets/example-3.62e8f11a.js"></script> </body></html> |
Large diffs are not rendered by default.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
<!DOCTYPE html><html><head><style>body{padding:20px}.msg{position:absolute;bottom:0;left:20px;color:#aaa;font-size:12px;margin-bottom:20px}</style></head><body> <div id="app"></div> <script type="text/javascript" src="/documentation/snippets/multiplayer.3a1a6797.js"></script> | ||
</body></html> | ||
<!DOCTYPE html><html><head><style>body{padding:1.25rem}.msg{position:absolute;bottom:0;left:1.25rem;color:#aaa;font-size:.75rem;margin-bottom:1.25rem}@media screen and (max-width:420px){:root{font-size:75%}}</style></head><body> <div id="app"></div> <script type="text/javascript" src="/documentation/snippets/multiplayer.2f764476.js"></script> </body></html> |
This file was deleted.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
<!DOCTYPE html><html><link rel="stylesheet" href="/documentation/snippets/phases-1.9bffb833.css"><body> <div id="app"></div> <script type="text/javascript" src="/documentation/snippets/phases-1.40bcf781.js"></script> | ||
</body></html> | ||
<!DOCTYPE html><html><link rel="stylesheet" href="/documentation/snippets/phases-1.490dcd4c.css"><body> <div id="app"></div> <script type="text/javascript" src="/documentation/snippets/phases-1.cb840e94.js"></script> </body></html> |
This file was deleted.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
<!DOCTYPE html><html><link rel="stylesheet" href="/documentation/snippets/phases-2.f9cd3ae7.css"><body> <div id="app"></div> <script type="text/javascript" src="/documentation/snippets/phases-2.65256dd9.js"></script> | ||
</body></html> | ||
<!DOCTYPE html><html><link rel="stylesheet" href="/documentation/snippets/phases-2.fa21cb61.css"><body> <div id="app"></div> <script type="text/javascript" src="/documentation/snippets/phases-2.de500121.js"></script> </body></html> |
Large diffs are not rendered by default.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
<!DOCTYPE html><html><link rel="stylesheet" href="/documentation/snippets/stages-1.f67a9865.css"><body> <div id="app"></div> <script type="text/javascript" src="/documentation/snippets/stages-1.7e8f7869.js"></script> | ||
</body></html> | ||
<!DOCTYPE html><html><link rel="stylesheet" href="/documentation/snippets/stages-1.bcf7ab84.css"><body> <div id="app"></div> <script type="text/javascript" src="/documentation/snippets/stages-1.5636fa1b.js"></script> </body></html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package-lock.json |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# snippets | ||
|
||
This directory contains the source code for the embedded demos | ||
found in boardgame.io’s documentation. | ||
|
||
To work with the snippets, `cd` to this directory and install | ||
the required dependencies: | ||
|
||
```sh | ||
cd examples/snippets | ||
npm install | ||
``` | ||
|
||
## Available commands | ||
|
||
### `npm start` | ||
|
||
Run a local development server with each snippet on its own | ||
page. | ||
|
||
Each snippet will be available at | ||
`https://localhost:1234/<snippet-name>/index.html`. | ||
|
||
### `npm run update-docs` | ||
|
||
Builds the snippets and installs them at the appropriate places | ||
in the docs. Be careful not to let Prettier "un-minify" the | ||
bundled JS while committing the change. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.