From 0128f5b0a192083d0392a069f9e7f12d356efed2 Mon Sep 17 00:00:00 2001 From: André Oliveira <37463445+SpecialAro@users.noreply.github.com> Date: Sat, 14 May 2022 23:55:26 +0100 Subject: Add cross-env debug command for every platform (#148) [skip ci] --- CONTRIBUTING.md | 11 ++--------- package.json | 3 ++- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5e108519f..d604df7cb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -186,17 +186,10 @@ codesign --deep --force --verbose --sign - node_modules/electron/dist/Electron.a ### Start development app -Run these two commands **simultaneously** in different terminals: +Run this command on the terminal: ```bash -npm run dev -DEBUG=Ferdium:* npm run start -``` - -- Optionally, you can run both commands in one terminal with [concurrently](https://www.npmjs.com/package/concurrently): - -```bash -DEBUG_COLORS=1 DEBUG=Ferdium:* npm run start:all-dev +npm run debug ``` Note: please prefer [`debug()`](https://github.com/visionmedia/debug) over `console.log()`. diff --git a/package.json b/package.json index 7ce453d77..a34d43906 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,8 @@ "link-readme": "ts-node scripts/link-readme.ts", "minify-images": "./scripts/minify-images.sh", "start:server": "ts-node src/internal-server/test.ts", - "add-crowdin-contributors": "ts-node scripts/add-crowdin-contributors.ts" + "add-crowdin-contributors": "ts-node scripts/add-crowdin-contributors.ts", + "debug": "cross-env-shell DEBUG_COLORS=1 DEBUG=Ferdium:* npm run start:all-dev" }, "keywords": [], "dependencies": { -- cgit v1.2.3-54-g00ecf