Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nickw1 committed Oct 30, 2024
1 parent 13f1e8b commit 44e22fa
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 806 deletions.
4 changes: 3 additions & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ You need to have built LocAR itself first and produced a tarball; please see [th
It is recommended to use [Vite](https://vitejs.dev) in **development** mode to test and experiment with them, and access them via the Vite dev server:

```
http://localhost:5173
http://localhost:5173/locar.js
```

You need to add `locar.js` onto the URL as vite is configured to use that as the base.

This also works nicely if you are using port forwarding with the Chrome Dev Tools on a real Android device.

The Vite config for **build mode** is configured for deploying to GitHub Pages, so you will need to tweak it if you want to build and run the examples locally.
Expand Down
12 changes: 12 additions & 0 deletions examples/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"dependencies": {
"three": "^0.169.0",
"locar": "file:../locar-0.0.1.tgz"
},
"devDependencies": {
"vite": "^5.4.8"
},
"scripts": {
"build": "vite build"
}
}
Loading

0 comments on commit 44e22fa

Please sign in to comment.