Quantcast

dgrid/dojo release build consumed by angular app

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

dgrid/dojo release build consumed by angular app

Rowe, James

Has anyone built a dgrid application and used the dojo build script to generate a release script?

 

Right now we’re loading OnDemandGrid.js which depends on dojo/main which loads all the other files.

This works fine but obviously has dozens of network calls.

 

Specifically the way our app consumes requireJS modules is not compatible with what dojo release outputs.

I’m using requirejs and our config object has shims/exports.

 

Some thoughts:
* Is there a way to change the output file requirejs module definition?

* Can I minify dgrid, dojo separately and deploy them?

* is there a parameter to use main.js instead of dojo.js?

 

Any thoughts would be appreciated.

 

Previously referenced

https://www.sitepen.com/blog/2012/06/11/dgrid-and-dojo-nano-build/

http://dojotoolkit.org/reference-guide/1.10/build/qref.html

https://dojotoolkit.org/reference-guide/1.10/build/profiles.html

 

Thanks,

--

James Rowe

Developer, Paychex Inc.

[hidden email]

 

The information contained in this message may be privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify your representative immediately and delete this message from your computer. Thank you.


--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: dgrid/dojo release build consumed by angular app

Andrew Muraco
I'm curious about this too, couldn't you just use R.js to build everything? then in the require.config specify the alias to the main modules?

I genuinely want to know since right now I"m using the regular dojo build with dgrid/dojo/dijit and was thinking about trying out a new JS framework..

On Tue, Apr 12, 2016 at 3:26 PM Rowe, James <[hidden email]> wrote:

Has anyone built a dgrid application and used the dojo build script to generate a release script?

 

Right now we’re loading OnDemandGrid.js which depends on dojo/main which loads all the other files.

This works fine but obviously has dozens of network calls.

 

Specifically the way our app consumes requireJS modules is not compatible with what dojo release outputs.

I’m using requirejs and our config object has shims/exports.

 

Some thoughts:
* Is there a way to change the output file requirejs module definition?

* Can I minify dgrid, dojo separately and deploy them?

* is there a parameter to use main.js instead of dojo.js?

 

Any thoughts would be appreciated.

 

Previously referenced

https://www.sitepen.com/blog/2012/06/11/dgrid-and-dojo-nano-build/

http://dojotoolkit.org/reference-guide/1.10/build/qref.html

https://dojotoolkit.org/reference-guide/1.10/build/profiles.html

 

Thanks,

--

James Rowe

Developer, Paychex Inc.

[hidden email]

 

The information contained in this message may be privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify your representative immediately and delete this message from your computer. Thank you.

--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
--
Thanks,
- Andrew

--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: dgrid/dojo release build consumed by angular app

Rowe, James
In reply to this post by Rowe, James
Andrew, et al.

I'm able to 'build' a release file using grunt require js. See below for settings.
This also allows me to define('Paychex-grid') as a bundle that includes all the right packages.

I'm hoping to share this process on https://github.com/paychex soon.

requirejs: {
            compile: {
                options: {
                    stubModules: ['default'],
                    baseUrl: './',
                    name: 'paychex-dgrid',
                    out: 'release.js',
                    optimize: 'none'
                }
            }


Paychex-dgrid.js -> just a define block to build the release.js file
define(['dgrid/OnDemandGrid', 'dojo/on', 'dgrid/Grid', 'dstore/src/Memory', 'dojo/query'], function (OnDemandGrid, on, Grid, Memory, query) {
    return {
        OnDemandGrid: OnDemandGrid,
        on: on,
        Grid: Grid,
        Memory: Memory,
        query: query
    };
});
--
James Rowe
Developer


The information contained in this message may be privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify your representative immediately and delete this message from your computer. Thank you.
--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Loading...