Skip to content

Commit

Permalink
update examples to use makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
mashaal committed Aug 11, 2021
1 parent 1168022 commit 1e132ab
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 61 deletions.
5 changes: 1 addition & 4 deletions examples/boilerplate/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
# Ultra

Ensure you have [Deno](https://deno.land/) and
[Denon](https://deno.land/x/denon) installed.

```bash
git clone https://github.com/exhibitionist-digital/ultra

cd ultra/examples/boilerplate

denon dev
make dev
```
8 changes: 8 additions & 0 deletions examples/boilerplate/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
dev:
mode=dev deno run --allow-net --allow-read --allow-env --allow-run --allow-write --import-map=importmap.json --unstable server.js

start:
deno run --allow-net --allow-read --allow-env --allow-run --allow-write --import-map=importmap.json --unstable server.js

cache:
deno cache --reload --no-check server.js
14 changes: 0 additions & 14 deletions examples/boilerplate/scripts.json

This file was deleted.

5 changes: 1 addition & 4 deletions examples/react18/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
# Ultra

Ensure you have [Deno](https://deno.land/) and
[Denon](https://deno.land/x/denon) installed.

```bash
git clone https://github.com/exhibitionist-digital/ultra

cd ultra/examples/react18

denon dev
make dev
```
8 changes: 8 additions & 0 deletions examples/react18/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
dev:
mode=dev deno run --allow-net --allow-read --allow-env --allow-run --allow-write --import-map=importmap.json --unstable server.js

start:
url=https://react18.ultrajs.dev deno run --allow-net --allow-read --allow-env --allow-run --allow-write --import-map=importmap.json --unstable server.js

cache:
deno cache --reload --no-check server.js
17 changes: 0 additions & 17 deletions examples/react18/scripts.json

This file was deleted.

5 changes: 1 addition & 4 deletions examples/ultra-website/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
# Ultra

Ensure you have [Deno](https://deno.land/) and
[Denon](https://deno.land/x/denon) installed.

```bash
git clone https://github.com/exhibitionist-digital/ultra

cd ultra/examples/ultra-website

denon dev
make dev
```
8 changes: 8 additions & 0 deletions examples/ultra-website/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
dev:
mode=dev deno run --allow-net --allow-read --allow-env --allow-run --allow-write --import-map=importmap.json --unstable server.js

start:
url=https://ultrajs.dev deno run --allow-net --allow-read --allow-env --allow-run --allow-write --import-map=importmap.json --unstable server.js

cache:
deno cache --reload --no-check server.js
17 changes: 0 additions & 17 deletions examples/ultra-website/scripts.json

This file was deleted.

2 changes: 1 addition & 1 deletion examples/ultra-website/server.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ultra from "https://deno.land/x/ultra/mod.js";
import ultra, { app, router } from "https://deno.land/x/ultra/mod.js";
import { join } from "https://deno.land/std/path/mod.ts";

router.get("/markdown", async (context) => {
Expand Down

0 comments on commit 1e132ab

Please sign in to comment.