add readme and fix dev script
This commit is contained in:
parent
ef6ab83090
commit
f8cfd28213
5 changed files with 24 additions and 5 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
node_modules/**
|
||||
.envrc
|
||||
.direnv/**
|
||||
|
|
18
README.md
Normal file
18
README.md
Normal file
|
@ -0,0 +1,18 @@
|
|||
# webxdc-go
|
||||
|
||||
a Go game application for webxdc
|
||||
|
||||
## develop
|
||||
|
||||
assuming nix flake
|
||||
|
||||
```sh
|
||||
nix develop
|
||||
# or if using direnv
|
||||
echo "use flake ." > .envrc
|
||||
|
||||
npm run dev
|
||||
# runs dev server on localhost:4000
|
||||
# instances run on incremntal ports
|
||||
# refresh page to reflect changes
|
||||
```
|
|
@ -2,11 +2,11 @@
|
|||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1718160348,
|
||||
"narHash": "sha256-9YrUjdztqi4Gz8n3mBuqvCkMo4ojrA6nASwyIKWMpus=",
|
||||
"lastModified": 1718530797,
|
||||
"narHash": "sha256-pup6cYwtgvzDpvpSCFh1TEUjw2zkNpk8iolbKnyFmmU=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "57d6973abba7ea108bac64ae7629e7431e0199b6",
|
||||
"rev": "b60ebf54c15553b393d144357375ea956f89e9a9",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
nodejs = pkgs.nodejs-slim;
|
||||
nodejs = pkgs.nodejs;
|
||||
in {
|
||||
devShells = {
|
||||
x86_64-linux = {
|
||||
|
|
|
@ -4,6 +4,6 @@
|
|||
},
|
||||
"scripts": {
|
||||
"build": "zip -9 --recurse-paths dist/myapp.xdc src",
|
||||
"webxdc-dev": "webxdc-dev run --port 4000 src"
|
||||
"dev": "webxdc-dev run --port 4000 src"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue