SideraX Posted May 13, 2014 Share Posted May 13, 2014 Hi all At the moment, we have three tools to build and minifying babylon.js : JSKompactor.exe which if I understand the readme, will use a list of files in the right order generated by BuildOurOwnBabylonJS.bat based on ourOwnBabylonJS.xml and babylonJS.xml, obviously work only on windows.By the way gwenael, how does this currently work ? I know that you want to use an attribue "dependsOn" in the xml (you already have the code and the definition in the xsd) but I don't see any in babylonJs.xml ?Not really a tool but we have this wiki page : Creating-the-minified-version which is maintained by deltakosh, I suppose this list is here for developers who want to run babylon directly in their pages without a minified version. And a gulp based process (with the main advantage to be cross-platform, have a fast adoption rate by the js libraries and frontend dev) which I maintain and it require the list of files in the right order too, which is directly in gulpfile.js (generally I just copy/paste the list of the wiki page).So we have actually three different file to update every time a new js file is added to the repository : babylonJS.xml, the wiki page and gulpfile.js. It's a bit inefficient in my opinion ^^ And personally, I miss a lot of update. With the 1.12 and typescript, I will update gulp to manage the ts files and this give two different way to do the building process :- I can first compile all ts files to their js counterpart and then concat the js files based on our list.- I can compile all ts files into one big js file (option --out on typescript compiler) but in this case typescript need a _references.ts files which contains our list in the right order ^^ ( _references.ts is required too in visual studio if you want to use the in-program equivalent of the --out option). So to make our life simpler, I think we need to either :- Have just one tool to build babylon and just one list to maintain.- Have typescript to compile one big js file and just maintain _references.ts (drawback : all js files are completely ignored).- Have the tools use the same list maintened by hand.- Have gulp implement something similar to what does BuildOurOwnBabylonJS.bat with babylonJS.xml and the "dependsOn" attribute. Anyway an easy, efficient and bugfree building process is really important to make contribution easier What do you think ? ps : please pardon me all grammar error, even if they are hideous ^^ Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.