apeman-react-image
Version:
apeman react package for image component.
24 lines (17 loc) • 377 B
JavaScript
/**
* Watch files.
*/
process.chdir(`${__dirname}/..`)
const apeWatching = require('ape-watching')
const childProcess = require('child_process')
let timer = null
apeWatching.watchFiles([
'lib/**/*.jsx'
], (ev, filename) => {
clearTimeout(timer)
timer = setTimeout(function () {
childProcess.fork('ci/compile.js')
}, 300)
})