create-all-services.js 529 B

12345678910111213141516171819
  1. #!/usr/bin/env node
  2. var path = require('path');
  3. /*
  4. * Pass optional path to target directory as command line argument.
  5. *
  6. * The directory must include the apis/ folder and service customizations at
  7. * `lib/services`. Clients will be generated in `clients/`.
  8. *
  9. * If parameter is not passed the repository root will be used.
  10. */
  11. var ClientCreator = require('./client-creator');
  12. var cc = new ClientCreator(process.argv[2] || path.join(__dirname, '..'));
  13. cc.writeClientServices();
  14. console.log('Finished updating services.');