build: add quick relaunch npm task

This commit is contained in:
Mikhail Zolotukhin 2021-09-03 22:02:14 +03:00
parent 54e39666a3
commit eb68b5c166

View File

@ -31,6 +31,9 @@
"prescript-install": "npm run package", "prescript-install": "npm run package",
"script-install": "bin/install.sh", "script-install": "bin/install.sh",
"script-uninstall": "bin/uninstall.sh", "script-uninstall": "bin/uninstall.sh",
"preinstall-and-restart-kwin-x11": "npm run script-install",
"install-and-restart-kwin-x11": "kwin_x11 --replace",
"postinstall-and-restart-kwin-x11": "bash -ic \"kwin_x11 --replace & disown\"",
"docs": "npx typedoc --out $npm_package_config_build_dir/docs", "docs": "npx typedoc --out $npm_package_config_build_dir/docs",
"test": "mocha 'test/*.spec.js'" "test": "mocha 'test/*.spec.js'"
}, },
@ -89,4 +92,4 @@
"no-cond-assign": "error" "no-cond-assign": "error"
} }
} }
} }