Ole Rehmsen a49e2c4cc4 Fix carriage returns. 9 years ago
..
.gitignore 6baf8cefa0 updating gulp's gitignore 10 years ago
config.json 51ae11e721 Highlight Layer First step 9 years ago
gulp-addDtsExport.js 7f432c4ba8 Add "export = BABYLON;" to the end of d.ts file so that it can be imported with an import statement. 9 years ago
gulp-addModuleExports.js a49e2c4cc4 Fix carriage returns. 9 years ago
gulp-removeShaderComments.js 0b2bd0b300 New parametrables shader includes 9 years ago
gulpfile.js 7f432c4ba8 Add "export = BABYLON;" to the end of d.ts file so that it can be imported with an import statement. 9 years ago
package.json 5442cc9aa0 Babylon.js is now compiled with [optimize-js](https://github.com/nolanlawson/optimize-js) to get faster initial load 9 years ago
readme.md 9337ce8eb6 Update readme.md 10 years ago

readme.md

Build Babylon.js with Gulp

Build Babylon.js with gulp and npm (nodejs), easy and cross-platform

(Paths in this file are relative to this file location.)

How to use it

First install gulp :

npm install -g gulp

Install some dependencies :

npm install

Update dependencies if necessary :

npm update

Update config.json if you want to add your own files:

"extras" : {
    "files": [
        "file1.js", "file2.js"
    ]
}

From the javascript source

Build Babylon.js from the javascript files:

gulp

Will be generated :

  • babylon.js
  • babylon.noworker.js (minified version without collisions workers)
  • babylon.max.js (unminified)

Build Babylon.js when you save a javascript file:

gulp watch

From the typescript source

Build Babylon.js from the typescript files:

gulp typescript

Will be generated :

  • babylon.js
  • babylon.d.ts
  • babylon.noworker.js (minified version without collisions workers)
  • babylon.max.js (unminified)

Be aware that all js files content will be overwrite.

Build Babylon.js when you save a typescript file:

gulp watch-typescript

Compile all the typscript files to their javascript respective files including declaration file

gulp typescript-compile

Be aware that all js files content will be overwritten.