-
Notifications
You must be signed in to change notification settings - Fork 16
Description
Not a bug/issue, but it might be useful info for others trying to get up & running with msagl.js usign VSCode on Windows. Maybe it's useful for an FAQ entry.
I found that with some modifications the main scripts and examples can be build on Windows using VSCode.
After installing Node.js on Windows you should be able to run the following commands to install the build tools globally:
npm install -g yarn
npm install -g lerna
npm install -g esbuild
In the various package.json files split the "build" command into a separate clean (the linux rm/rmdir command that won't work on Windows) and build command.
After this you can either run commands as 'npm run build' or (if present) use the VSCode npm command window. Note that some of the examples end up in the website folder instead of the examples folder.
PS 1) the clean commands use wildcards that are not compatible with Windows so one would need a batch file (and call in in the clean command) to clean the repo from previous output.
PS 2) if you want to disable minifiying the scripts (for debugging purposes), modify the 'esbuild.js' file and change all '.min.js' extensions in build scrips to just '.js'.