Update directions, dev server.

This commit is contained in:
Will Scullin 2019-03-04 19:55:35 -08:00
parent 9f8fc8588a
commit 2bb9e040ec
No known key found for this signature in database
GPG Key ID: 9092A5C0A673416B
3 changed files with 39 additions and 9 deletions

View File

@ -1,11 +1,41 @@
apple2js
========
An Apple II emulator written in Javascript
An Apple II emulator written in Javascript.
Things are a little rought around the edges right now, hopefully I will have
time to clean things up in a bit.
Things are still a little rough around the edges right now, hopefully I will have more time to clean things up.
To run, open apple2js.html
First
To add additional disk images, use scripts/dsk2json.pl, then "make index"
```sh
npm install
```
To run a development server
```sh
npm run dev
```
The open either
[http://localhost:8080/apple2js.html](http://localhost:8080/apple2js.html) or
[http://localhost:8080/apple2jse.html](http://localhost:8080/apple2jse.html)
To build a static distribution into `dist`
```sh
npm run build
```
To add additional disk images, use
```sh
./bin/dsk2json -c Category -n Name path/to/image.dsk > json/disks/
image.json`
```
then
```sh
./bin/index`
```

View File

@ -4,9 +4,9 @@
"description": "Apple II Emulator in JavaScript",
"scripts": {
"build": "webpack --mode=production",
"dev": "webpack-dev-server",
"index": "scripts/index.pl > json/disks/index.js",
"lint": "eslint js",
"start": "webpack-dev-server"
"lint": "eslint js"
},
"repository": {
"type": "git",

View File

@ -14,7 +14,7 @@ module.exports =
},
devServer: {
compress: true,
watchContentBase: true,
writeToDisk: true
publicPath: '/dist/',
watchContentBase: true
}
};