1.0.4 • Published 3 years ago

sync-update v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
3 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

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago