Raanan Weber df0a1bfc93 Worker can be in a single file 10 年之前
..
.gitignore 6baf8cefa0 updating gulp's gitignore 10 年之前
config.json df0a1bfc93 Worker can be in a single file 10 年之前
gulp-srcToVariable.js a28712c606 Updating gulp completely 10 年之前
gulpfile.js a28712c606 Updating gulp completely 10 年之前
package.json a28712c606 Updating gulp completely 10 年之前
readme.md a28712c606 Updating gulp completely 10 年之前

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 :

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