From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 260D976E7C for ; Mon, 19 Jul 2021 12:32:27 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 1C3FD24F26 for ; Mon, 19 Jul 2021 12:31:57 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 4782324F05 for ; Mon, 19 Jul 2021 12:31:56 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 57C2F4232D for ; Mon, 19 Jul 2021 12:31:50 +0200 (CEST) From: Dominik Csapak To: pve-devel@lists.proxmox.com Date: Mon, 19 Jul 2021 12:31:46 +0200 Message-Id: <20210719103149.3430829-1-d.csapak@proxmox.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.565 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH v2 0/3] make linting threaded X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2021 10:32:27 -0000 NOTE: this series will not build until a 'make buildupstream' is executed (and 'src/lib/eslint.js' should be committed as well). I did not send it because it would be too big. this series convert the package into a proper nodejs module 'pve-eslint', and adds threading to the linting binary changes from v1: * convert to nodejs module * split worker code to own file * drop hacky self-loading script, and use the 'pve-eslint' module instead Dominik Csapak (3): ship proper nodejs module 'pve-eslint' remove unnecessary eslint.js use worker_threads for linting Makefile | 2 +- debian/control | 7 +- debian/dirs | 1 + debian/links | 1 + debian/rules | 5 +- patches/0001-adapt-webpack-config.patch | 19 +- src/Makefile | 15 - src/{ => bin}/app.js | 40 +- src/eslint.js | 138871 --------------------- src/index.js | 5 + src/lib/worker.js | 27 + src/package.json | 10 + 12 files changed, 92 insertions(+), 138911 deletions(-) create mode 100644 debian/dirs create mode 100644 debian/links delete mode 100644 src/Makefile rename src/{ => bin}/app.js (92%) delete mode 100755 src/eslint.js create mode 100644 src/index.js create mode 100644 src/lib/worker.js create mode 100644 src/package.json -- 2.30.2