buildBabylonJSAndDependencies.js 653 B

1234567891011121314151617181920212223
  1. // Dependecies.
  2. const shelljs = require('shelljs');
  3. const path = require("path");
  4. const colorConsole = require("../../NodeHelpers/colorConsole");
  5. /**
  6. * Build the folder with Gulp.
  7. */
  8. function buildBabylonJSAndDependencies() {
  9. colorConsole.log("Running gulp compilation");
  10. let exec = shelljs.exec("gulp typescript-libraries typescript-es6", {
  11. cwd: path.resolve(__dirname, "../../Gulp/")
  12. });
  13. if (exec.code) {
  14. colorConsole.error("Error during compilation, aborting");
  15. process.exit(1);
  16. }
  17. }
  18. /**
  19. * Main function driving the publication.
  20. */
  21. module.exports = buildBabylonJSAndDependencies;