mirror of
https://github.com/HeyPuter/puter.git
synced 2025-12-31 02:00:13 -06:00
devex: reduce webpack verbosity
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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": "",
|
||||
|
||||
@@ -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/*"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user