src/index.js
function generate(spec) {
  createProjectDirectory();
  spec = addHttpEndpointNames(spec);
  spec = addSocketEndpointFlag(spec);
  spec = addSocketEmitTypeFlag(spec);
  spec = isProxyEndpointAvailable(spec);
  writeFileSync('server.mustache', spec, 'server.js');
  writeFileSync('package.mustache', spec, 'package.json');
}
function generate(spec) {
  createProjectDirectory();
  spec = addHttpEndpointNames(spec);
  spec = addSocketEndpointFlag(spec);
  spec = addSocketEmitTypeFlag(spec);
  spec = isProxyEndpointAvailable(spec);
  writeFileSync('server.mustache', spec, 'server.js');
  writeFileSync('package.mustache', spec, 'package.json');
}
function generate ( spec ) { createProjectDirectory ( ) ; spec = addHttpEndpointNames ( spec ) ; spec = addSocketEndpointFlag ( spec ) ; spec = addSocketEmitTypeFlag ( spec ) ; spec = isProxyEndpointAvailable ( spec ) ; writeFileSync ( 'server.mustache' , spec , 'server.js' ) ; writeFileSync ( 'package.mustache' , spec , 'package.json' ) ; }
Generates the project files
Generates the project files