selsamman / bisync Goto Github PK
View Code? Open in Web Editor NEWA bidirectional sync mechanism for shared code
A bidirectional sync mechanism for shared code
Hey,
I was just about to make something like this and saw you recently did :)
System: Windows 10 x64
Node v18.14.0
My use case is much simpler than a monorepo: sync a bunch of config files to a single git repo.
Usage:
(in other ode proj): npm i -D bisync
, npx bisync install
, npx bisync watch ./bisync.json
, npx bisync start
.
bisync.json
:
[
["./test.txt", "D:/test/test.txt"]
]
This is what I got in the log:
2023-02-17 23:02:44.721: socket.io waiting for connection
2023-02-17 23:02:44.722: Daemon Started
2023-02-17 23:02:45.179: socket.io connected
2023-02-17 23:02:45.187: Request to update
2023-02-17 23:02:45.188: Setting configuration files ...\bisync.json
2023-02-17 23:02:45.188: adding config [["C:...\\test.txt","D:/test/test.txt"]]
2023-02-17 23:02:45.191: ["C:...\\test.txt","D:/test/test.txt","C:...\\bisync.json"]
2023-02-17 23:02:45.192: add C:...\test.txt
2023-02-17 23:02:45.193: add D:\test\test.txt
2023-02-17 23:02:45.193: add C:...\bisync.json
2023-02-17 23:02:45.195: Daemon responded OK: Daemon running
2023-02-17 23:02:59.648: change C:...\test.txt
2023-02-17 23:02:10.116: change D:\test\test.txt
Status
PS C:...> npx bisync status
Daemon running
These configuration files are in effect:
- C:...\bisync.json
Current log file: C:...\bisync.log
Changes are recognized when I edit either of the bisynced files, but bisync doesn't actually replace any...
Both files existed in advance when I started bisync.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.