add readme and fix dev script

This commit is contained in:
sorrel 2024-06-19 18:03:21 -04:00
parent ef6ab83090
commit f8cfd28213
5 changed files with 24 additions and 5 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
node_modules/** node_modules/**
.envrc .envrc
.direnv/**

18
README.md Normal file
View 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
```

View file

@ -2,11 +2,11 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1718160348, "lastModified": 1718530797,
"narHash": "sha256-9YrUjdztqi4Gz8n3mBuqvCkMo4ojrA6nASwyIKWMpus=", "narHash": "sha256-pup6cYwtgvzDpvpSCFh1TEUjw2zkNpk8iolbKnyFmmU=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "57d6973abba7ea108bac64ae7629e7431e0199b6", "rev": "b60ebf54c15553b393d144357375ea956f89e9a9",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -9,7 +9,7 @@
let let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };
nodejs = pkgs.nodejs-slim; nodejs = pkgs.nodejs;
in { in {
devShells = { devShells = {
x86_64-linux = { x86_64-linux = {

View file

@ -4,6 +4,6 @@
}, },
"scripts": { "scripts": {
"build": "zip -9 --recurse-paths dist/myapp.xdc src", "build": "zip -9 --recurse-paths dist/myapp.xdc src",
"webxdc-dev": "webxdc-dev run --port 4000 src" "dev": "webxdc-dev run --port 4000 src"
} }
} }