Skip to content

build: make wallet npm scripts cross-platform#3

Open
Sikkra wants to merge 1 commit into
BitgesellOfficial:masterfrom
Sikkra:codex/cross-platform-npm-scripts
Open

build: make wallet npm scripts cross-platform#3
Sikkra wants to merge 1 commit into
BitgesellOfficial:masterfrom
Sikkra:codex/cross-platform-npm-scripts

Conversation

@Sikkra
Copy link
Copy Markdown

@Sikkra Sikkra commented May 20, 2026

Summary

Makes the wallet npm workflow usable from Windows/PowerShell while preserving the existing build outputs:

  • fixes npm test by removing the shell-specific quoted glob and allowing Windows checkout line endings in ESLint
  • lets npm run local-server use package.json defaults without POSIX environment assignment syntax
  • replaces the shell-only npm build path with a Node build driver that runs the same Babel, UglifyJS, html-minifier, and clean-css steps
  • adds a dist-start wrapper that sets the configured dist folder without POSIX-only VAR=value syntax

This keeps build.sh available for existing Unix users but makes the package scripts work cross-platform.

Verification

  • Before: npm test failed on Windows with No files matching the pattern "'src/*.js'"; after: npm test passes.
  • Before: npm run build failed on Windows with '.' is not recognized; after: npm run build completes and writes bitgesell-wallet-dist.
  • node --check scripts/build.js scripts/dist-server.js local-server.js
  • local server smoke: PORT=18080 node local-server.js returned HTTP/1.1 200 OK for /.

Program reference: BitgesellOfficial/bitgesell#81

USDT-TRC20 payout address if accepted: TPwPFww7zxXFQ7zugo22gktQhckWVarRqi

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