Update npm and badges in README

This commit is contained in:
Diego Marcos
2025-06-10 01:35:55 -07:00
committed by GitHub
parent f2d449a256
commit 7546f20d08
+7 -7
View File
@@ -15,8 +15,8 @@
<div align="center"> <div align="center">
[![License](https://img.shields.io/badge/license-MIT-%23d43e4c)](https://github.com/sparkjs-dev/spark/blob/main/LICENSE) [![License](https://img.shields.io/badge/license-MIT-%23d43e4c)](https://github.com/sparkjsdev/spark/blob/main/LICENSE)
[![npm version](https://img.shields.io/npm/v/@sparkjs-dev/spark?color=d43e4c)](https://www.npmjs.com/package/@sparkjs-dev/spark) [![npm version](https://img.shields.io/npm/v/@sparkjsdev/spark?color=d43e4c)](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