David Catuhe 70d6af401e Raw texture step 1 10 yıl önce
..
.gitignore 4b41b80f1d Add Gulp for buiding babylon cross platform 11 yıl önce
gulp-shaders.js 8c887847b2 #258 Gulp build strips out the first character in all shaders 11 yıl önce
gulpfile.js 70d6af401e Raw texture step 1 10 yıl önce
package.json 31d8f311ac refactored freeCamera and followCamera to subclass targetCamera 11 yıl önce
readme.md f1f6c8fa94 Add typescript support in gulp building process. 11 yıl önce

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 gulpfile.js (task scripts) if you want to add your own files:

/**
 * Concat all js files in order into one big js file and minify it.
 * The list is based on https://github.com/BabylonJS/Babylon.js/wiki/Creating-the-minified-version
 * Do not hesistate to update it if you need to add your own files.
 */
gulp.task('scripts', ['shaders'] ,function() {
return gulp.src([
      '../../Babylon/Math/babylon.math.js',
      '../../Babylon/Math/babylon.axis.js',

      ....

From the javascript source

Build Babylon.js from the javascript files:

gulp

Will be generated :

  • build/babylon.js
  • build/babylon.min.js

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 :

  • build/babylon.js
  • build/babylon.d.ts
  • build/babylon.min.js

Be aware that all js files content will be overwrite.

Build Babylon.js when you save a javascript file:

gulp watch-typescript

Compile all the typscript files to their javascript respective files

gulp typescript-to-js

Be aware that all js files content will be overwrite.

Build the typescript declaration file

gulp typescript-declaration