Build Babylon.canvas2d.js with Gulp
More info about Canvas2D
Build Babylon.canvas2d.js with gulp and npm (nodejs), easy and cross-platform
(Paths in this file are relative to this file location.)
How to use it
From the /Tools/Gulp folder:
First install gulp :
npm install -g gulp
Install some dependencies :
npm install
Update dependencies if necessary :
npm update
From the javascript source
Build Babylon.canvas2d.js:
gulp Canvas2D
Will be generated in dist/preview release/canvas2D:
- babylon.canvas2d.min.js
- babylon.canvas2d.js (unminified)
- babylon.canvas2d.d.ts
Build the changed files for debug when you save a typescript or shader file:
gulp watch
Watch and run a web server for debug purpose:
gulp run