Every line of 'serve build' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
113 function serve(exitCode) { 114 115 // Save our exitCode for testing 116 _exitCode = exitCode; 117 118 // Reset skyuxconfig.json 119 resetConfig(); 120 121 return server.start('unused-root', tmp) 122 .then(port => browser.get(`https://localhost:${port}/dist/`)); 123 }
39 public async handle () { 40 const rcContents = await getRcContents(this.projectRoot) 41 42 /** 43 * Ensure `.adonisrc.json` file exists 44 */ 45 if (!rcContents) { 46 this.logger.error('Make sure your project root has .adonisrc.json file to continue') 47 return 48 } 49 50 const compiler = new Compiler(this.projectRoot, rcContents, []) 51 52 if (this.watch) { 53 await compiler.watch(false) 54 } else { 55 await compiler.buildForProduction(this.yarn ? 'yarn' : 'npm') 56 } 57 }
6 function runServe (program, callback) { 7 hopsBuild.runBuild(program, function (error) { 8 if (error) { 9 callback ? callback(error) : console.error(error.stack.toString()); 10 } else { 11 hopsExpress.startServer(callback); 12 } 13 }); 14 }