sebavan 480722badd Merge pull request #4533 from kcoley/glTFSerializer3dTexture пре 7 година
..
config.json 480722badd Merge pull request #4533 from kcoley/glTFSerializer3dTexture пре 7 година
gulp-addDtsExport.js 034b01a4b2 presenting declaration dependencies пре 7 година
gulp-addES6Exports.js 639e2dd1fc make sure es6 will compile correctly пре 7 година
gulp-addModuleExports.js d4f09ea58e No-Module Babylon is vanillajs-only babylon version. пре 7 година
gulp-appendSrcToVariable.js 163225fec1 module support to appendSrcToVariable пре 7 година
gulp-babylonModule.js 8702341e8e major changes to the way modules are built пре 7 година
gulp-calculateDependencies.js 8702341e8e major changes to the way modules are built пре 7 година
gulp-decorateAndExtends.js d4f09ea58e No-Module Babylon is vanillajs-only babylon version. пре 7 година
gulp-dtsModuleSupport.js 2ca4ebf365 calculate exact dependencies and update the d.ts files. пре 7 година
gulp-es6ModuleExports.js 8702341e8e major changes to the way modules are built пре 7 година
gulp-removeShaderComments.js 0b2bd0b300 New parametrables shader includes пре 9 година
gulp-validateTypedoc.js 95fa7ee945 Nightly пре 7 година
gulpfile.js 1320a1e976 Merge remote-tracking branch 'upstream/master' into gltf-logging пре 7 година
package.json de8fe1d291 fixing npm build пре 7 година
processViewerDeclaration.js 2aa8d46587 build the viewer's declaration without modules пре 7 година
profiling.html 657632ad12 Custom Building using browser profiling. Directions in self-contained пре 8 година
readme.md ebccd440e2 removed quotes: URLs are now displayed when viewing the readme.md on github пре 7 година

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