forked from hyperledger-cacti/cacti
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: use tsc project references, npm v7 workspaces hyperledger-cact…
…i#312 hyperledger-cacti#973 1. Migrates the build from lerna to the built-in Typescript compiler project references feature meaning that instead of running the typescript compiler in a separate, dedicated process for each package it only runs a single process of tsc (typescript compiler) which processes all the packages. This provides a speed boost and also finally allows IDEs (integrated development environments) to better index the source code and the build artifacts together in order to provide up to date compiler errors (previously if you had done a full rebuild of the souce code you also needed to reload your VSCode window for example in order to jolt it into purging it's code cache and stop giving false negative errors/warnings about missing packages) 2. Moves the project build to npm v7 workspaces which means that we will no longer need lerna to bootstrap dependencies by sym- linking them together for the sybling packages. Instead npm will take care of all this which provices a significant speedup in the time the configure script takes to run. 3. Also migrates all front-end (Ionic+Angular) packages to the latest version of Angular at the time of this writing (v12) because the new build system changes mandated this (Angular dependencies could not be resolved properly because of us using npm workspaces) 4. Added an FAQ entry to show developers how to increase the Linux kernel's open file limits (per process) which was necessary because on WSL 2 Ubuntu 20.04 the npm install process was failing when the limit was on 4096 files by default. 5. The webpack config had to be migrated to the new webpack/cli package (major version upgrade had breaking changes as expected) Again, this was necessary because of the cascading effects all stemming from us migrating to the npm workspaces. Why conflate all these different issues into a single commit/PR? Because as it turned out you could not make a single change without also applying all the others (which was not know at the time of the issues for these tasks being created). Fixes hyperledger-cacti#312 Fixes hyperledger-cacti#973 Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
- Loading branch information
Showing
105 changed files
with
164,639 additions
and
91,808 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
# TSLint configuration parameter | ||
packages/cactus-cockpit/tslint.json | ||
# Besu CLI argument | ||
tools/docker/besu-all-in-one/supervisord.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,4 +44,6 @@ cactus-openapi-spec-*.json | |
*.log | ||
build/ | ||
.gradle/ | ||
site/ | ||
site/ | ||
|
||
.build-cache/*.tsbuildinfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"*/*/src/**/*.{js,ts}": [ | ||
"eslint --fix", | ||
"cspell --no-must-find-files --config .cspell.json" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
examples/cactus-example-carbon-accounting-backend/package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.