build-system/server/typescript-compile.js
/**
 * Builds the new server by converting typescript transforms to JS
 */
Builds the new server by converting typescript transforms to JS
Builds the new server by converting typescript transforms to JS
function buildNewServer() {
  log(
    green('Building'),
    cyan('AMP Dev Server'),
    green('at'),
    cyan(`${SERVER_TRANSFORM_PATH}/dist`) + green('...')
  );
  const result = exec(getBuildCmd(), {'stdio': ['inherit', 'inherit', 'pipe']});
  if (result.status != 0) {
    const err = new Error('Could not build AMP Dev Server');
    err.showStack = false;
    throw err;
  }
}
function buildNewServer ( ) { log ( green ( 'Building' ) , cyan ( 'AMP Dev Server' ) , green ( 'at' ) , cyan ( ` ${ SERVER_TRANSFORM_PATH } ` ) + green ( '...' ) ) ; const result = exec ( getBuildCmd ( ) , { 'stdio' : [ 'inherit' , 'inherit' , 'pipe' ] } ) ; if ( result . status != 0 ) { const err = new Error ( 'Could not build AMP Dev Server' ) ; err . showStack = false ; throw err ; } }
Builds the new server by converting typescript transforms to JS
Builds the new server by converting typescript transforms to JS