ProjectVisBug icon indicating copy to clipboard operation
ProjectVisBug copied to clipboard

(maintenance) Cross platform dev environment

Open mayank99 opened this issue 3 years ago • 1 comments

I couldn't get dev:extension to work on windows (it uses cp). When I tried using WSL (which does support cp), I got an error with sed.

sed: can't read s/{{NPM_VERSION}}/0.0.0/: No such file or directory

there's certainly some infra updates that could be done in the codebase to smooth out cross platform and cross IDE dev. need to block out some maintenance time. also need to update to manifest v3

Originally posted by @argyleink in https://github.com/GoogleChromeLabs/ProjectVisBug/issues/569#issuecomment-1267237851


Also (maybe unrelated):

  • Running npm install on latest version of node/npm recreates lockfile version 2
  • Saving file with prettier installed in VSCode messes up formatting. Perhaps a prettierrc or .vscode/settings.json (or both) is needed.

mayank99 avatar Oct 04 '22 16:10 mayank99

nice yeah, there's sed and cp and a few other unix commands in the scripts that could leverage a node package for cross platform support 👍🏻

regarding prettier, perhaps editor config's didnt age well and a migration from it to prettier could be helper. tho i think i'd go standardjs, as it's much more aligned with the style already in the repo.

argyleink avatar Oct 04 '22 21:10 argyleink