Closed joelgriffith closed 9 years ago
Might be nice to have the sicksync wizard save configs locally (similar to how jshint operates), and if none is found bubble up to the HOME directory to sync.
+1
I've been thinking a lot about how to implement this, and it's fairly trivial as far as the client goes (just a new config file, new option to create a project, and some reducing to find the nearest config), however it get's a bit challenging from the remote perspective.
It has no idea about which project is being synced. Currently, it just assumes that you're going to sync one project (which is the global one). This gets further complicated by the fact that the remote machine can be started manually or automatically. If it's started manually (via the CLI), then it could be listening in the wrong place and updates that come in would hose everything.
I think I'll need to write a proposal for this as it's a fairly complicated feature.
Also, the JSHint behavior is something I'm leaning against. The .jshintrc
file is nice because it can be checked in and enforce rules about how that project is linted, but in the case of sicksync every .sicksync-config.json file is different and will add noise to a projects .gitignore.
Since care has to be taken with the remote machine(s) in how sicksync works, I'm starting to lean towards extending the CLI for handling multiple projects.
i would propose git as a template for handling configs (same as jshint) and remotes (remotes are defined in the per project config, including a default, then used as a command argument.
From the conversation had on Monday, the following would change:
sicksync-remote
. The recommended workflow will be shelling into the remote machine and starting the server (sicksync already does this).destinationLocation
+ the relative path) to the remote machine.Feature is complete in 2.0.0
It'd be nice to have multiple folders sicksynced independently. This would likely require some config modifications...