lunchboxjs 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Lunchbox 2 lets you write [ThreeJS](https://threejs.org/) scenes using [web components](https://developer.mozilla.org/en-US/docs/Web/API/Web_components). You can use it in any (or no) framework.
|
|
2
|
+
|
|
3
|
+
```html
|
|
4
|
+
<three-lunchbox>
|
|
5
|
+
<three-mesh position-z="-5">
|
|
6
|
+
<torus-knot-geometry></torus-knot-geometry>
|
|
7
|
+
<mesh-normal-material></mesh-normal-material>
|
|
8
|
+
</three-mesh>
|
|
9
|
+
</three-lunchbox>
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Docs
|
|
13
|
+
|
|
14
|
+
[Install](https://docs.lunchboxjs.com/install.html)
|
|
15
|
+
|
|
16
|
+
[Full docs](https://docs.lunchboxjs.com/)
|
|
17
|
+
|
|
18
|
+
## About
|
|
19
|
+
|
|
20
|
+
Lunchbox started as a Vue + ThreeJS custom renderer, but from version 2 on will be focused on web components built into browsers.
|
|
21
|
+
|
|
22
|
+
## Local Dev
|
|
23
|
+
|
|
24
|
+
`npm install`, then `npm run dev` to run dev server. From there, edit source code in the LunchboxJS package's `/src/...` and examples in `/index.html/...` to build and test features.
|
|
25
|
+
|
|
26
|
+
`npm run test` to run headless tests, `npm run cy:open` to open Cypress test suites.
|
|
27
|
+
|
|
28
|
+
`npm run docs:dev` to run docs locally.
|
|
29
|
+
|
|
30
|
+
## Publishing
|
|
31
|
+
|
|
32
|
+
`npm run test` to make sure all tests pass, then `npm run publish`.
|