sebavan f913b52a54 Fix npm audit for Dev 6 năm trước cách đây
..
config.json 0b92379813 Merge branch 'master' of https://github.com/BabylonJS/Babylon.js into ammoPlugin 6 năm trước cách đây
gulp-addDtsExport.js 012d56b256 updating dev dependencies, moving to gulp 4 7 năm trước cách đây
gulp-addES6Exports.js 012d56b256 updating dev dependencies, moving to gulp 4 7 năm trước cách đây
gulp-addModuleExports.js 012d56b256 updating dev dependencies, moving to gulp 4 7 năm trước cách đây
gulp-appendSrcToVariable.js 012d56b256 updating dev dependencies, moving to gulp 4 7 năm trước cách đây
gulp-babylonModule.js 012d56b256 updating dev dependencies, moving to gulp 4 7 năm trước cách đây
gulp-calculateDependencies.js 8702341e8e major changes to the way modules are built 7 năm trước cách đây
gulp-decorateAndExtends.js 012d56b256 updating dev dependencies, moving to gulp 4 7 năm trước cách đây
gulp-dtsModuleSupport.js 012d56b256 updating dev dependencies, moving to gulp 4 7 năm trước cách đây
gulp-es6ModuleExports.js 012d56b256 updating dev dependencies, moving to gulp 4 7 năm trước cách đây
gulp-removeShaderComments.js 012d56b256 updating dev dependencies, moving to gulp 4 7 năm trước cách đây
gulp-validateTypedoc.js 012d56b256 updating dev dependencies, moving to gulp 4 7 năm trước cách đây
gulpfile.js f913b52a54 Fix npm audit for Dev 6 năm trước cách đây
package.json f913b52a54 Fix npm audit for Dev 6 năm trước cách đây
processViewerDeclaration.js 8af5356f0a d.ts cleanup 7 năm trước cách đây
profiling.html 657632ad12 Custom Building using browser profiling. Directions in self-contained 8 năm trước cách đây
readme.md 582aafc55b Update readme.md 7 năm trước cách đây

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@4.0.0

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