stromguo / js-builder

Automatically exported from code.google.com/p/js-builder
0 stars 0 forks source link

Support for Dojo #27

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This is an enhancement request:

(forgive me if I am explaining something you are already aware of but I'll
give a quick high level dojo explanation to just in case)

Dojo has a few quirks and ism's that are unique to it and one of them is
that  dynamically loaded files must have the following line at the top of
the file

dojo.provide('MyLib.MyClass');

Or

dojo.provide('MyLib.SubFolder.MyClass');

The first part MyLib is translated to a path on the server and is
controlled by calling dojo.registerModulePath('MyLib', '../MyLib');

So MyLib.MyClass expects a file called MyClass.js in the MyLib folder and
'MyLib.SubFolder.MyClass' expects a file in MyLib/SubFolder/MyClass.js

If would be nice if there was a way to insert the dojo.provide statement at
build time folder files listed in the "Combine compressed files to create
specific output files:"

Even if it was as simple as a textbox on the Output Target Properties
dialog that allowed me to specific like:

dojo.provide('MyLib.$compressedFile')

Which would become the first line after the header comment in the
compressed merged file.

Original issue reported on code.google.com by glennsc...@gmail.com on 18 Dec 2007 at 4:31

GoogleCodeExporter commented 8 years ago
Sorry part of that is a little incoherent

...

It would be nice if there was a way to insert the dojo.provide statement at
build time to the files listed in the "Combine compressed files to create
specific output files:"

Even if it was a textbox on the Output Target Properties
dialog that allowed me to enter something specific like:

dojo.provide('MyLib.$compressedFile');

Which would become the first line after the header comment in the
compressed output file.

Original comment by glennsc...@gmail.com on 18 Dec 2007 at 4:36