1.0.4 • Published 2 years ago

sync-update v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

install

npm i sync-update

use

index.js

const path = require('path');
const {syncUpdate} = require('sync-uodate');
const src = path.resolve(__dirname, './src');
const dist = path.resolve(__dirname, './dist');
// const src ="E:\\xxx\\src";
// const dist = "E:\\yy\\zz\\xxxx";
syncUpdate(src, dist);

cmd 中运行

当 src 目录中文件发生变化, dist 中可以同步到此变化;不需要使用 modemon

node index.js
1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago