Ticket #53 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

single file build

Reported by: madair Owned by: madair
Priority: P1 Milestone: 1.1
Component: Core Version: 1.0.4
Severity: Major Keywords:
Cc: External ID:
state: New Browser: All
Operating System: All

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

Changed 4 years ago by madair

(In [1385]) re #53: - builds all of fusion in a single file - will parse an AppDef? file for required Widget and Map js files and include only those files in the SF build.xml - converts AppDef? to a JSON structure and includes it - add YUI compression

Changed 4 years ago by madair

(In [1386]) re #53: file clean up

Changed 4 years ago by jbirch

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?

Changed 4 years ago by madair

  • status changed from new to 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.

Changed 4 years ago by madair

including the AppDef? JSON structure should be optional, i.e. if not specified in the ant build process, it's not included and Fusion behaves as before loading AppDef? and converting to JSON at run time.

Changed 4 years ago by madair

  • milestone set to 1.0.5

Changed 4 years ago by jbirch

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?

Changed 4 years ago by madair

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.

Changed 4 years ago by madair

  • status changed from assigned to closed
  • resolution set to fixed

(In [1390]) closes #53: makes pre-parsing and including ApplicationDefinition optional.

Changed 4 years ago by madair

  • milestone changed from 1.0.5 to 1.1
Note: See TracTickets for help on using tickets.