#53 closed defect (fixed)
single file build
Reported by: | madair | Owned by: | madair |
---|---|---|---|
Priority: | P1 | Milestone: | 1.1 |
Component: | Core | Version: | 1.0.4 |
Severity: | Major | Keywords: | |
Cc: | Browser: | All | |
External ID: | Operating System: | All | |
state: | New |
Description
add a build target to create a 'compiled' app that would do the following:
- analyse the application definition and create a single file build that includes only the widgets referenced by the application definition
- pre-process the application definition into a json object and include it in the single file build
- include config.json in the single file build
The result would be a template that loads a single javascript file that includes everything required to get started.
Implement the YUI compressor in build.xml
Change History (10)
comment:1 by , 17 years ago
comment:3 by , 17 years ago
Hey, that's pretty darn cool.
Will there be an option for sites that are running multiple fusion apps off the same install to specify multiple appdefs?
comment:4 by , 17 years ago
Status: | new → assigned |
---|
in response to Jason, no not as it stands since the AppDef gets converted to JSON and included in the single file. Multiple fusion apps would each be "compiled" into separate JavaScript files in included in the app's script src tag.
However all other Fusion files (CSS/PHP/images) would come from a shared install of Fusion.
comment:5 by , 17 years ago
comment:6 by , 17 years ago
Milestone: | → 1.0.5 |
---|
comment:7 by , 17 years ago
Mike, is including the appdef currently optional, or is this a future enhancement (should be?)? I'd love to see MapGuide 2.0.1 use a single-file build.
How does this impact extensions? If using a single-file build, will extensions not in the build still be loaded at runtime?
comment:8 by , 17 years ago
extensions are supported in the singleFile build as long as they are installed in fusion/ext. Including the AppDef is not optional at the moment, this will be fixed for 1.0.5.
comment:9 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
(In [1390]) closes #53: makes pre-parsing and including ApplicationDefinition optional.
comment:10 by , 17 years ago
Milestone: | 1.0.5 → 1.1 |
---|
(In [1385]) re #53: