DESKTOP-QJU4N0L\mityh 688891c08c Merge remote-tracking branch 'refs/remotes/BabylonJS/master' into Particle2 7 年之前
..
config.json 80598c8b65 Adding cone and sphere emitters 7 年之前
gulp-addDtsExport.js 138b7d5305 no need for referene types when not sub module 8 年之前
gulp-addModuleExports.js 1ae6b44434 Inspector is now working in dist=true 7 年之前
gulp-appendSrcToVariable.js 20f2fe0cf8 Dev tools 2 8 年之前
gulp-removeShaderComments.js 0b2bd0b300 New parametrables shader includes 9 年之前
gulpfile.js cb033a2d46 Integrate Validation tests on pull requests 7 年之前
package.json 1f72300d49 nightly 7 年之前
profiling.html 657632ad12 Custom Building using browser profiling. Directions in self-contained 8 年之前
readme.md 37d689638c Switch to Gulp for Blender zip file 8 年之前

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, currently Tools/Gulp.

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)

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 overwritten.

Build Babylon.js when you save a typescript file:

gulp watch

Run Integrated Web Server and watch for changes:

gulp run

you can now freely test in the following URLs:

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.

Compile all the libraries

gulp typescript-libraries

Be aware that all js files content will be overwritten.

Compile all the typscript and the library

gulp typescript-all

Zip individual Blender python files for distribute-able

gulp zip-blender