mirror of
https://github.com/storytold/spark.git
synced 2026-10-26 08:47:57 +00:00
Update npm and badges in README
This commit is contained in:
@@ -15,8 +15,8 @@
|
|||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
[](https://github.com/sparkjs-dev/spark/blob/main/LICENSE)
|
[](https://github.com/sparkjsdev/spark/blob/main/LICENSE)
|
||||||
[](https://www.npmjs.com/package/@sparkjs-dev/spark)
|
[](https://www.npmjs.com/package/@sparkjsdev/spark)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -53,13 +53,13 @@ Copy the following code into an `index.html` file.
|
|||||||
{
|
{
|
||||||
"imports": {
|
"imports": {
|
||||||
"three": "https://cdnjs.cloudflare.com/ajax/libs/three.js/0.174.0/three.module.js",
|
"three": "https://cdnjs.cloudflare.com/ajax/libs/three.js/0.174.0/three.module.js",
|
||||||
"@sparkjs-dev/spark": "https://sparkjs.dev/releases/spark/0.2.0/spark.module.js"
|
"@sparkjsdev/spark": "https://sparkjs.dev/releases/spark/0.2.0/spark.module.js"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script type="module">
|
<script type="module">
|
||||||
import * as THREE from "three";
|
import * as THREE from "three";
|
||||||
import { SplatMesh } from "@sparkjs-dev/spark";
|
import { SplatMesh } from "@sparkjsdev/spark";
|
||||||
|
|
||||||
const scene = new THREE.Scene();
|
const scene = new THREE.Scene();
|
||||||
const camera = new THREE.PerspectiveCamera(60, window.innerWidth / window.innerHeight, 0.1, 1000);
|
const camera = new THREE.PerspectiveCamera(60, window.innerWidth / window.innerHeight, 0.1, 1000);
|
||||||
@@ -91,7 +91,7 @@ Remix the [glitch starter template](https://glitch.com/edit/#!/sparkjs-dev)
|
|||||||
{
|
{
|
||||||
"imports": {
|
"imports": {
|
||||||
"three": "https://cdnjs.cloudflare.com/ajax/libs/three.js/0.174.0/three.module.js",
|
"three": "https://cdnjs.cloudflare.com/ajax/libs/three.js/0.174.0/three.module.js",
|
||||||
"@sparkjs-dev/spark": "https://sparkjs.dev/releases/spark/0.2.0/spark.module.js"
|
"@sparkjsdev/spark": "https://sparkjs.dev/releases/spark/0.2.0/spark.module.js"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -100,7 +100,7 @@ Remix the [glitch starter template](https://glitch.com/edit/#!/sparkjs-dev)
|
|||||||
### NPM
|
### NPM
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
npm install @sparkjs-dev/spark
|
npm install @sparkjsdev/spark
|
||||||
```
|
```
|
||||||
|
|
||||||
## Run Examples locally
|
## Run Examples locally
|
||||||
@@ -199,7 +199,7 @@ npm run site:serve
|
|||||||
|
|
||||||
### Deploy Spark website
|
### Deploy Spark website
|
||||||
|
|
||||||
The following command will generate a static site from the `docs` directory and push it to the [repo](https://github.com/sparkjs-dev/sparkjs-dev.github.io) that hosts the site via `gh-pages`
|
The following command will generate a static site from the `docs` directory and push it to the [repo](https://github.com/sparkjsdev/sparkjs-dev.github.io) that hosts the site via `gh-pages`
|
||||||
|
|
||||||
```
|
```
|
||||||
npm run site:deploy
|
npm run site:deploy
|
||||||
|
|||||||
Reference in New Issue
Block a user