Add a tool to monitor and re-run the client build process

The Javascript ecosystem is rubbish.
This commit is contained in:
Savanni D'Gerinel 2023-01-28 12:29:28 -05:00
parent 3a3cf84c83
commit 9b4e0a43ed
2 changed files with 3 additions and 1 deletions

View File

@ -30,6 +30,7 @@
pkgs.openssl pkgs.openssl
pkgs.pkg-config pkgs.pkg-config
pkgs.nodejs pkgs.nodejs
pkgs.entr
rust rust
]; ];
LIBCLANG_PATH="${pkgs.llvmPackages.libclang.lib}/lib"; LIBCLANG_PATH="${pkgs.llvmPackages.libclang.lib}/lib";

View File

@ -5,7 +5,8 @@
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {
"build": "browserify src/main.ts -p [ tsify ] > dist/bundle.js", "build": "browserify src/main.ts -p [ tsify ] > dist/bundle.js",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1",
"watch": "exa index.html styles.css src/* | entr -s 'npm run build'"
}, },
"author": "Savanni D'Gerinel <savanni@luminescent-dreams.com>", "author": "Savanni D'Gerinel <savanni@luminescent-dreams.com>",
"license": "GPL-3.0-or-later", "license": "GPL-3.0-or-later",