Comparing version 0.0.88 to 0.0.89
{ | ||
"name": "@lbu/cli", | ||
"version": "0.0.88", | ||
"version": "0.0.89", | ||
"description": "CLI containing utilities and simple script runner", | ||
@@ -30,4 +30,4 @@ "main": "./index.js", | ||
"dependencies": { | ||
"@lbu/insight": "0.0.88", | ||
"@lbu/stdlib": "0.0.88", | ||
"@lbu/insight": "0.0.89", | ||
"@lbu/stdlib": "0.0.89", | ||
"c8": "7.3.5", | ||
@@ -59,3 +59,3 @@ "chokidar": "3.4.3", | ||
}, | ||
"gitHead": "f95775597389435d11e6ef713651a2d1d4816067" | ||
"gitHead": "96683eacc77885317739cc1dc3a30d58c74324c7" | ||
} |
@@ -14,2 +14,3 @@ # @lbu/cli | ||
- Script runner, can watch & reload almost anything | ||
- Test and benchmark runner | ||
- Flexible code generators supporting routers, validators, api clients, CRUD | ||
@@ -39,4 +40,7 @@ queries and more in the future. | ||
- Run user scripts (in watch mode) | ||
- Run the linter or tests | ||
- Run the linter | ||
- A LBU based boilerplate | ||
- Test runner | ||
- Benchmark runner | ||
- Necessary Docker container management | ||
@@ -54,2 +58,3 @@ **@lbu/lint-config**: | ||
- Various utilities to get insight in the running process | ||
- A manual event system | ||
@@ -60,3 +65,2 @@ **@lbu/stdlib**: | ||
- Wrappers for child_process execution and spawning | ||
- Basic templating system | ||
- A `mainFn` wrapper that reads `.env` and calls the provided function if the | ||
@@ -72,3 +76,3 @@ file is the process entrypoint | ||
- Send file helper | ||
- Re-exports koa-session and koa-compose | ||
- Session support with safe browser readable cookies | ||
@@ -83,4 +87,4 @@ **@lbu/store**: | ||
- Caching files from S3 in memory or on local disk | ||
- Postgres powered JobQueue implementation | ||
- Supports priority, scheduling, multiple async workers | ||
- Postgres powered queue implementation | ||
- Supports priority, scheduling, multiple async workers and recurring jobs | ||
- koa-session compatible SessionStore backed by Postgres | ||
@@ -92,6 +96,7 @@ | ||
- router, with wildcard and path parameter support | ||
- validators, with pre- and postValidate hooks | ||
- queries, CRUD postgres queries | ||
- validators, pure JavaScript implementation | ||
- sql, CRUD postgres queries, graph traversal | ||
- Axios based api client | ||
- Typescript or JSDoc types | ||
- TypeScript or JSDoc types | ||
- react-query hooks | ||
- An extendable set of types: | ||
@@ -123,3 +128,4 @@ - boolean, number, string; | ||
Although some parts heavily rely on conventions set by the packages, we | ||
currently aim not to be a framework. However, the idea of being a bit more of | ||
framework is not completely out of the door yet. | ||
currently aim not to be a framework. We aim to provide a good developer | ||
experience, useful abstractions around the basics, and a stable backend <-> | ||
client interface. |
@@ -223,3 +223,7 @@ import { spawn as cpSpawn } from "child_process"; | ||
function restart() { | ||
/** | ||
* Restart with debounce | ||
* @param {boolean} [skipDebounce] | ||
*/ | ||
function restart(skipDebounce) { | ||
// Restart may be called multiple times in a row | ||
@@ -231,7 +235,12 @@ // We may want to add some kind of graceful back off here | ||
timeout = setTimeout(() => { | ||
if (skipDebounce) { | ||
stop(); | ||
start(); | ||
clearTimeout(timeout); | ||
}, 350); | ||
} else { | ||
timeout = setTimeout(() => { | ||
stop(); | ||
start(); | ||
clearTimeout(timeout); | ||
}, 250); | ||
} | ||
} | ||
@@ -252,5 +261,5 @@ } | ||
if (input === "rs") { | ||
restart(); | ||
restart(true); | ||
} | ||
}); | ||
} |
75455
2484
124
+ Added@lbu/insight@0.0.89(transitive)
+ Added@lbu/stdlib@0.0.89(transitive)
+ Added@types/node@14.14.5(transitive)
- Removed@lbu/insight@0.0.88(transitive)
- Removed@lbu/stdlib@0.0.88(transitive)
- Removed@types/node@14.14.2(transitive)
Updated@lbu/insight@0.0.89
Updated@lbu/stdlib@0.0.89