playcanvas / playcanvas-sync

Real-time synchronization of files between PlayCanvas and your local machine
https://playcanvas.com/
MIT License
74 stars 17 forks source link

As CLI tool? #30

Open mikecann opened 2 years ago

mikecann commented 2 years ago

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:

  1. npm install playcanvas-sync -g
  2. playcanvas-sync -c my-config.json watchAll
willeastcott commented 2 years ago

I agree with this 100%. playcanvas-sync should definitely be distributed and work as you describe IMHO.

zachpeterpaul commented 2 years ago

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.

willeastcott commented 2 years ago

@zachpeterpaul Not on Windows, it doesn't.