devex: reduce webpack verbosity

This commit is contained in:
KernelDeimos
2025-10-07 16:01:05 -04:00
committed by Eric Dubé
parent 74ceb2fa1b
commit e59f4e6c16
5 changed files with 6 additions and 16 deletions

View File

@@ -69,11 +69,10 @@ class ProcessService extends BaseService {
global_config: this.global_config
});
}
console.log(
this.log.debug(
'command',
command,
...args
)
{ command, args },
);
const proc = this.modules.spawn(command, args, {
shell: true,
env: {

View File

@@ -86,15 +86,6 @@ class SelfHostedModule extends AdvancedBase {
PUTER_JS_URL: ({ global_config: config }) => config.origin + '/sdk/puter.dev.js',
},
},
{
name: 'git:rollup-watch',
directory: 'src/git',
command: 'npx',
args: ['rollup', '-c', 'rollup.config.js', '--watch'],
env: {
PUTER_JS_URL: ({ global_config: config }) => config.origin + '/sdk/puter.dev.js',
},
},
{
name: 'emulator:webpack-watch',
directory: 'src/emulator',

View File

@@ -4,7 +4,7 @@
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start-webpack": "webpack --watch --devtool source-map"
"start-webpack": "webpack --watch --devtool source-map --stats=errors-only"
},
"keywords": [],
"author": "",

View File

@@ -32,7 +32,7 @@
"start=gui": "nodemon --exec \"node dev-server.js\" ",
"build": "node ./build.js",
"check-translations": "node tools/check-translations.js",
"start-webpack": "webpack --watch --devtool source-map"
"start-webpack": "webpack --watch --devtool source-map --stats=errors-only"
},
"workspaces": [
"src/*"

View File

@@ -25,7 +25,7 @@
],
"scripts": {
"start-server": "npx http-server --cors -c-1",
"start-webpack": "webpack && webpack --output-filename puter.dev.js --watch --devtool source-map",
"start-webpack": "webpack --stats=errors-only && webpack --output-filename puter.dev.js --watch --devtool source-map --stats=errors-only",
"start": "concurrently \"npm run start-server\" \"npm run start-webpack\"",
"build": "webpack && { echo \"// Copyright 2024-present Puter Technologies Inc. All rights reserved.\"; echo \"// Generated on $(date '+%Y-%m-%d %H:%M')\n\"; cat ./dist/puter.js; } > temp && mv temp ./dist/puter.js",
"prepublishOnly": "npm run build && mv dist/puter.js dist/puter.cjs && npm version patch"