Skip to content

Refactor npm scripts in package.json#57

Open
th3w1zard1 wants to merge 1 commit intoKobaltBlu:masterfrom
th3w1zard1:patch-1
Open

Refactor npm scripts in package.json#57
th3w1zard1 wants to merge 1 commit intoKobaltBlu:masterfrom
th3w1zard1:patch-1

Conversation

@th3w1zard1
Copy link
Contributor

This pull request significantly expands and reorganizes the npm scripts in the package.json to provide more granular control over build, serve, and debug workflows for both Electron and web environments. The update introduces new scripts for building, cleaning, serving, starting, and debugging the application, while also restructuring existing commands for clarity and flexibility.

Build and Serve Workflow Improvements:

  • Added new scripts for building Electron and web versions separately (build:electron, build:web, build:web:prod), and a combined build script for development.
  • Introduced a clean script to remove the dist directory, and a rebuild script to clean and rebuild the project.

Debugging and Development Enhancements:

  • Added multiple scripts for starting and serving the application in various debug modes, including support for Electron logging and Node warnings (serve:electron:debug, start:debug:full, start:electron:inspect:full, etc.).
  • Provided scripts for both full and incremental builds before launching Electron, allowing for faster iteration during development.

Testing and Documentation:

  • Standardized test scripts with verbose and watch modes, and ensured coverage reporting.
  • Retained and clarified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant