Open mikecann opened 2 years ago
I agree with this 100%. playcanvas-sync
should definitely be distributed and work as you describe IMHO.
After 'npm install' from the project folder you can run it without 'node' or '.js'. The example command in the readme is for less experienced users who may not want to install it. './pcwatch.js' would also work.
@zachpeterpaul Not on Windows, it doesn't.
Any reason why this isnt simply a CLI tool on npm? Also why the explicit calling of node? This is kind of counter-intuitive to people coming from the web ecosystem.
I would also suggest having the user optionally explicity provide the config as it confused me and it seems to confuse others too (judging by the forum and issues).
A more usual / preferred developer experience would be:
npm install playcanvas-sync -g
playcanvas-sync -c my-config.json watchAll