mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-05-06 19:40:58 -04:00
Update README for current process
The README has gotten a bit out of date and inaccurate. Clarify how to work with scratch-vm in the current state of the project.
This commit is contained in:
parent
93bac9ad85
commit
f9708b2046
1 changed files with 6 additions and 6 deletions
12
README.md
12
README.md
|
@ -8,11 +8,11 @@
|
|||
## Installation
|
||||
This requires you to have Git and Node.js installed.
|
||||
|
||||
In your own node environment/application:
|
||||
To install as a dependency for your own application:
|
||||
```bash
|
||||
npm install https://github.com/LLK/scratch-vm.git
|
||||
npm install scratch-vm
|
||||
```
|
||||
If you want to edit/play yourself:
|
||||
To set up a development environment to edit scratch-vm yourself:
|
||||
```bash
|
||||
git clone https://github.com/LLK/scratch-vm.git
|
||||
cd scratch-vm
|
||||
|
@ -22,7 +22,7 @@ npm install
|
|||
## Development Server
|
||||
This requires Node.js to be installed.
|
||||
|
||||
For convenience, we've included a development server with the VM. This is sometimes useful when running in an environment that's loading remote resources (e.g., SVGs from the Scratch server).
|
||||
For convenience, we've included a development server with the VM. This is sometimes useful when running in an environment that's loading remote resources (e.g., SVGs from the Scratch server). If you would like to use your modified VM with the full Scratch 3.0 GUI, [follow the instructions to link the VM to the GUI](https://github.com/LLK/scratch-gui/wiki/Getting-Started).
|
||||
|
||||
## Running the Development Server
|
||||
Open a Command Prompt or Terminal in the repository and run:
|
||||
|
@ -31,7 +31,7 @@ npm start
|
|||
```
|
||||
|
||||
## Playground
|
||||
To run the Playground, make sure the dev server's running and go to [http://localhost:8073/playground/](http://localhost:8073/playground/) - you will be directed to the playground, which demonstrates various tools and internal state.
|
||||
To view the Playground, make sure the dev server's running and go to [http://localhost:8073/playground/](http://localhost:8073/playground/) - you will be directed to the playground, which demonstrates various tools and internal state.
|
||||
|
||||

|
||||
|
||||
|
@ -42,7 +42,7 @@ npm run build
|
|||
```
|
||||
|
||||
```html
|
||||
<script src="/path/to/vm.js"></script>
|
||||
<script src="/path/to/dist/web/scratch-vm.js"></script>
|
||||
<script>
|
||||
var vm = new window.VirtualMachine();
|
||||
// do things
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue