function installWatcher (startingFolder, callback) {
  bs.init({
    server: config.commands.build.output,
    port: config.commands.build.port,
    ui: false,
    open: false,
    logLevel: 'silent'
  })

  const watcher = createWatcher(path.join(startingFolder, '**/data.xml'))

  watcher.on('change', () => {
    callback()
    bs.reload()
  })
}
function installWatcher (startingFolder, callback) {
  bs.init({
    server: config.commands.build.output,
    port: config.commands.build.port,
    ui: false,
    open: false,
    logLevel: 'silent'
  })

  const watcher = createWatcher(path.join(startingFolder, '**/data.xml'))

  watcher.on('change', () => {
    callback()
    bs.reload()
  })
}
function installWatcher ( startingFolder , callback ) { bs . init ( { server : config . commands . build . output , port : config . commands . build . port , ui : false , open : false , logLevel : 'silent' } ) const watcher = createWatcher ( path . join ( startingFolder , '**/data.xml' ) ) watcher . on ( 'change' , ( ) => { callback ( ) bs . reload ( ) } ) }
Simple watcher used by the end-user. It only checks the data files and will launch a server on the build folder. It ignores the templates and CSS files changes.
Simple watcher used by the end - user . It only checks the data files and will launch a server on the build folder . It ignores the templates and CSS files changes .