Build process: make it sequential instead of parallel:

The "npm run build" command had several step made in parallel.
This make the output difficult to read, and difficult to understand for
new developpers.

This commit makes all steps sequential.
The build time increase:

* from ~1m10 to ~1m45 for a complete build (including the download time
  from debian package repo)
* from ~0m33 to ~0m40 for a light build

This seems acceptable, given the gain in readability.
This commit is contained in:
John Livingston 2023-08-01 11:37:35 +02:00
parent dafe8df5da
commit 5f6a47fd24
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC

View File

@ -97,7 +97,7 @@
"build:prosodymodules": "mkdir -p dist/server/prosody-modules && cp -r prosody-modules/* dist/server/prosody-modules/", "build:prosodymodules": "mkdir -p dist/server/prosody-modules && cp -r prosody-modules/* dist/server/prosody-modules/",
"build:styles": "sass assets/styles:dist/assets/styles", "build:styles": "sass assets/styles:dist/assets/styles",
"build:languages": "node ./build-languages.js", "build:languages": "node ./build-languages.js",
"build": "npm-run-all -s clean:light build:languages check:client:tsc -p build:converse build:prosody build:images build:avatars build:client build:server build:serverconverse build:prosodymodules build:styles", "build": "npm-run-all -s clean:light build:languages check:client:tsc -s build:converse build:prosody build:images build:avatars build:client build:server build:serverconverse build:prosodymodules build:styles",
"lint": "npm-run-all -s lint:script lint:styles", "lint": "npm-run-all -s lint:script lint:styles",
"lint:script": "npx eslint --ext .js --ext .ts .", "lint:script": "npx eslint --ext .js --ext .ts .",
"lint:styles": "stylelint 'conversejs/**/*.scss' 'assets/styles/**/*.css'", "lint:styles": "stylelint 'conversejs/**/*.scss' 'assets/styles/**/*.css'",