nockawa 6b546ee3c6 Canvas2D: dispose SceneNode of a WorldSpaceCanvas when this is created automatically and when the Canvas is disposed. 8 سال پیش
..
src 6b546ee3c6 Canvas2D: dispose SceneNode of a WorldSpaceCanvas when this is created automatically and when the Canvas is disposed. 8 سال پیش
tools 4193dea86d Added link to repo 8 سال پیش
config.json aedbd1de14 Updating preview files 8 سال پیش
gulp-addModuleExports.js c1552d4189 Added BabylonJS dependency checker to Canvas2D 8 سال پیش
gulp-removeShaderComments.js 78c3e96c2b Reintroducing canvas2D 8 سال پیش
gulp-srcToVariable.js 78c3e96c2b Reintroducing canvas2D 8 سال پیش
gulpfile.js 78c3e96c2b Reintroducing canvas2D 8 سال پیش
package.json 78c3e96c2b Reintroducing canvas2D 8 سال پیش
readme.md 78c3e96c2b Reintroducing canvas2D 8 سال پیش

readme.md

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

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 from the javascript files:

gulp

Will be generated :

  • babylon.canvas2d.js
  • babylon.canvas2d.max.js (unminified)

Build Babylon.canvas2d.js when you save a javascript file:

gulp watch

From the typescript source

Build Babylon.canvas2d.js from the typescript files:

gulp typescript

Will be generated :

  • babylon.canvas2d.js
  • babylon.canvas2d.d.ts
  • babylon.canvas2d.max.js (unminified)

Be aware that all js files content will be overwrite.

Build Babylon.canvas2d.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.