mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 06:05:24 +00:00
chore: clean up npm scripts, make npm run dev the full runner and drop concurrently
This commit is contained in:
1 parent
ec80a8ef8d
commit
3ee98664f0
7 files changed
+17
-147
No files matched your search
+1
-1
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* dev:all, one command for manual testing. Run with --help for the targets
|
||||
* npm run dev, one command for manual testing. Run with --help for the targets
|
||||
* and options.
|
||||
*
|
||||
* Every target builds the SDK and stages plugins (local builds from
|
||||
|
||||
@@ -2,7 +2,7 @@ export const NETWORK = "termix-dev";
|
||||
export const APP_CONTAINER = "termix-dev";
|
||||
export const APP_IMAGE = "termix:dev";
|
||||
|
||||
/** Side containers dev:all can run. hostPort is what the local backend uses. */
|
||||
/** Side containers npm run dev can run. hostPort is what the local backend uses. */
|
||||
export const SERVICES = {
|
||||
postgres: {
|
||||
container: "termix-dev-postgres",
|
||||
|
||||
@@ -87,7 +87,8 @@ export function createDebouncer(ms, fn) {
|
||||
export const TARGETS = ["web", "electron", "docker"];
|
||||
export const DATABASES = ["sqlite", "postgres", "mysql"];
|
||||
|
||||
export const HELP = `Usage: npm run dev:all -- [target] [options]
|
||||
export const HELP = `Usage: npm run dev -- [target] [options]
|
||||
(npm run dev:electron and npm run dev:docker pick the target)
|
||||
|
||||
Targets
|
||||
web Backend and Vite on http://localhost:5173 (default)
|
||||
@@ -112,7 +113,7 @@ Keys while running
|
||||
o open the app in a browser
|
||||
q quit`;
|
||||
|
||||
/** Reads dev:all arguments. Throws on anything it does not know. */
|
||||
/** Reads npm run dev arguments. Throws on anything it does not know. */
|
||||
export function parseDevArgs(argv) {
|
||||
const options = {
|
||||
target: "web",
|
||||
|
||||
Reference in new issue
Block a user