export default async function watch(options = {}) { const startActivity = activity.start('Starting watch.\t\t\t\t'); const reptar = new Reptar({ // Turn off caching of templates. noTemplateCache: true, showSpinner: false, ...options, }); await reptar.update(); const server = new Server(reptar); await server.start(); activity.end(startActivity); process.stdout.write('\n'); log.info('Server running at:', server.server.info.uri); if (options.browserSync) { const browserSync = bsCreate(); browserSync.init({ files: `${reptar.config.get('path.source')}/**/*`, proxy: server.server.info.uri, }); } }