diff --git a/CHANGELOG.md b/CHANGELOG.md index 76a2d24..a1df54b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -348,5 +348,10 @@ Inital commit, which is working with the browser - `listMethods` now returns a different array, where the attribute is named `method` instead of `func` -> Adaptions affect `BaseModule` and `GenericModule` - Added: - Added Tests for the Properties of NopeRpcManager, NopeConnectivityManager + - `lib/helpers`: + - `PriorityList`: -> List, which sorts the items based on a given priority. + - `LimitedList`: -> Ring-Like list. If the max amount of items is reached, the oldest one will be removed + - `ParallelPriorityTaskQueue` -> A Task-Queue (Parallel and if desired with priority) + - `generateHash` -> A function to generate a hash \ No newline at end of file diff --git a/README.md b/README.md index 173e46c..b8be280 100644 --- a/README.md +++ b/README.md @@ -24,8 +24,8 @@ To install `NoPE` just extecute the `00-install.bat`-Batch-File in the root-dire Make shure you run the following tasks 1. `npm install` -2. `npx tsc -p ./tsconfigBackend.json --pretty` -3. `npm link` +2. `./00-compile.bat` (on windows) or `./00-compile.sh` (on linux) +3. `./05-link.bat` (on windows) or `./05-link.sh` (on linux) # Usage @@ -37,10 +37,14 @@ After installation you can use the following cli-tool: Please select the option you want. Therefore add one of the following options: -- `help` - Opens the Help -- `run` - Start a NoPE-Backend. -- `init` - Initialize a new project. This project is empty. -- `scan` - Trys to update the configuration file. +- `help` Show this help. +- `run` Start a NoPE-Backend. +- `init` Initialize a new project. This project is empty. +- `conf` Trys to update the configuration file. +- `scan-ui` Scans and extracts the provided uis. +- `upload-ui` Uploads the determined ui-file +- `service` Generate Helper Files to provide services +- `repl` Opens an interactive console. # Changelog diff --git a/lib/helpers/taskQueue.spec.ts b/lib/helpers/taskQueue.spec.ts index fb44ea3..c078c4f 100644 --- a/lib/helpers/taskQueue.spec.ts +++ b/lib/helpers/taskQueue.spec.ts @@ -7,7 +7,7 @@ import { sleep } from "./async"; import { assert, expect } from "chai"; import { describe, it } from "mocha"; -import { PriorityTaskQueue } from "./taskQueue"; +import { ParallelPriorityTaskQueue } from "./taskQueue"; describe("PriorityTaskQueue", function () { // Describe the required Test: @@ -22,7 +22,7 @@ describe("PriorityTaskQueue", function () { return ret; } - const queue = new PriorityTaskQueue(); + const queue = new ParallelPriorityTaskQueue(); queue.maxParallel = 1; queue.usePriority = false; @@ -50,7 +50,7 @@ describe("PriorityTaskQueue", function () { return ret; } - const queue = new PriorityTaskQueue(); + const queue = new ParallelPriorityTaskQueue(); queue.maxParallel = 10; queue.usePriority = false; @@ -78,7 +78,7 @@ describe("PriorityTaskQueue", function () { return ret; } - const queue = new PriorityTaskQueue(); + const queue = new ParallelPriorityTaskQueue(); queue.maxParallel = 1; queue.usePriority = true; @@ -107,7 +107,7 @@ describe("PriorityTaskQueue", function () { return ret; } - const queue = new PriorityTaskQueue(); + const queue = new ParallelPriorityTaskQueue(); queue.maxParallel = 10; queue.usePriority = true; diff --git a/lib/helpers/taskQueue.ts b/lib/helpers/taskQueue.ts index e9c4391..baef2e4 100644 --- a/lib/helpers/taskQueue.ts +++ b/lib/helpers/taskQueue.ts @@ -22,7 +22,7 @@ import { PriorityList } from "./lists"; * @export * @class TaskQeue */ -export class PriorityTaskQueue { +export class ParallelPriorityTaskQueue { protected _queue = new PriorityList<{ func: (...args) => void; cancel: () => void; diff --git a/package.json b/package.json index 9af50f9..a8fc3cd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nope", - "version": "1.4.5", + "version": "1.4.6", "description": "NoPE Runtime for Nodejs. For Browser-Support please use nope-browser", "files": [ "dist-nodejs/**/*",