playcanvas / playcanvas-sync

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

Select config json based on selected profile #67

Open figo2264 opened 7 months ago

figo2264 commented 7 months ago

While working on a specific code base, it might be required to deploy the code into a branch in studio besides main for test purpose. Unfortunately, playcanvas-sync only supports a single config json file. Simply saying it might be needed to have profile based config files.

So, Here I modifed the playcanvas-sync command line option so a profile option is optionally available.

Added Option -p or --profile

Based on the option value, it will select pcconfig-{profile}.json Once the config file for each profile is set, you can simple use it by running a different npm command.

willeastcott commented 7 months ago

Hey @slimbuck - can you own getting this reviewed and merged please? 🙏