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 d601c8feeb
commit 522f7eb65b
2 changed files with 3 additions and 1 deletions

View File

@ -26,6 +26,7 @@
name = "ld-tools-devshell";
buildInputs = [
pkgs.clang
pkgs.entr
pkgs.glade
pkgs.gtk4
pkgs.nodejs

View File

@ -5,7 +5,8 @@
"main": "main.js",
"scripts": {
"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>",
"license": "GPL-3.0-or-later",