npm install -g compare-and-patch
Long way:
compare-and-patch --origin ./origin --target ./path/to/target
Shorthand:
cap -o ./origin -t ./path/to/target
Don't want to install? Just do:
npx cap -o ./origin -t ./path/to/target
Run:
cap
or go here.
install:
npm install compare-and-patch
import & use:
import { compareAndPatch } from "compare-and-patch";
compareAndPatch({
origin: "./origin",
target: "./path/to/target",
});
All options can be seen here.
- Add tests.
- Add ignore patterns.
- Dry run.