1234567891011121314151617181920 |
- // Dependecies.
- const shelljs = require('shelljs');
- const path = require("path");
- const colorConsole = require("../../NodeHelpers/colorConsole");
- /**
- * Build the folder with Gulp.
- */
- function buildBabylonJSAndDependencies() {
- colorConsole.log("Running gulp compilation");
- let exec = shelljs.exec("gulp --max-old-space-size=8192 typescript-all", {
- cwd: path.resolve(__dirname, "../../Gulp/")
- });
- if (exec.code) {
- colorConsole.error("Error during compilation, aborting");
- process.exit(1);
- }
- }
- module.exports = buildBabylonJSAndDependencies;
|