https://github.com/phetsims/phet-vite-demo
Template/proof-of-concept of using Vite with PhET sources without the PhET toolchain
https://github.com/phetsims/phet-vite-demo
Last synced: 4 months ago
JSON representation
Template/proof-of-concept of using Vite with PhET sources without the PhET toolchain
- Host: GitHub
- URL: https://github.com/phetsims/phet-vite-demo
- Owner: phetsims
- License: mit
- Created: 2024-02-08T23:03:34.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-27T16:21:17.000Z (over 1 year ago)
- Last Synced: 2024-11-27T17:28:47.723Z (over 1 year ago)
- Language: TypeScript
- Size: 248 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
phet-vite-demo
================
Testing out using Vite with PhET code. Uses the phet-lib NPM package.
### Quick Start
(1) Clone phet-vite-demo:
```sh
git clone https://github.com/phetsims/phet-vite-demo.git
```
(2) Install dev dependencies:
```sh
cd phet-vite-demo
npm install
```
(3) Run it from a browser:
The following will run a server on your local machine, and you can navigate to the URL to see the demo.
```sh
npx vite serve
```
It will print out the URL to navigate to, e.g. http://localhost:5173/.
(4) Built it:
```sh
npx vite build
```
It will be built into the `dist` directory, where dist/index.html is the entry point. The dist directory can be moved/served from wherever.
(5) Lint it:
```sh
npx eslint .
```